Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateStruct ¶
func ValidateStruct(v interface{}) error
Types ¶
type AuthResponse ¶
type AuthResponse struct {
UserInfo GoAuthUserInfo `json:"user_info,omitempty"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
SessionToken string `json:"session_token,omitempty"`
}
type FastHTTP ¶
type FastHTTP interface {
Login(ctx *fasthttp.RequestCtx)
Register(ctx *fasthttp.RequestCtx)
Logout(ctx *fasthttp.RequestCtx)
GoogleLogin(ctx *fasthttp.RequestCtx)
GoogleCallback(ctx *fasthttp.RequestCtx)
GithubLogin(ctx *fasthttp.RequestCtx)
GithubCallback(ctx *fasthttp.RequestCtx)
}
type GoAuthUserInfo ¶
type HTTP ¶
type HTTP interface {
Login(w http.ResponseWriter, r *http.Request)
Register(w http.ResponseWriter, r *http.Request)
Logout(w http.ResponseWriter, r *http.Request)
GoogleLogin(w http.ResponseWriter, r *http.Request)
GoogleCallback(w http.ResponseWriter, r *http.Request)
GithubLogin(w http.ResponseWriter, r *http.Request)
GithubCallback(w http.ResponseWriter, r *http.Request)
}
type LoginRequest ¶
type RegisterRequest ¶
type RegisterResponse ¶
type RegisterResponse struct{}
Click to show internal directories.
Click to hide internal directories.