Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedirectError ¶
func RedirectErrorCode ¶
code can be one of http.StatusMovedPermanently or http.StatusFound or any 3xx http status code
func SendRedirect ¶
func SendRedirect(w http.ResponseWriter, url string, code int)
Types ¶
type OAuth2 ¶
type RestResponse ¶
type RestResponse struct {
Result string `json:"result"` // "success" or "error" (or "redirect")
Data interface{} `json:"data"`
Error string `json:"error"`
Paging interface{} `json:"paging"`
Job interface{} `json:"job"`
Time interface{} `json:"time"`
Access interface{} `json:"access"`
RedirectUrl string `json:"redirect_url"`
RedirectCode int `json:"redirect_code"`
}
Click to show internal directories.
Click to hide internal directories.