Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCodeURLBody ¶
type AuthCodeURLBody struct {
Provider string `validate:"required"`
}
type AuthHandler ¶
type AuthHandler struct { *common.BaseHanlder JWTService *jwtservice.JWTService }
func (*AuthHandler) Me ¶
func (h *AuthHandler) Me(w http.ResponseWriter, req bunrouter.Request) error
func (*AuthHandler) Middleware ¶
func (h *AuthHandler) Middleware(next bunrouter.HandlerFunc) bunrouter.HandlerFunc
type OAuthHandler ¶
type OAuthHandler struct {
*common.BaseHanlder
}
func (*OAuthHandler) AuthCodeURL ¶
func (h *OAuthHandler) AuthCodeURL(w http.ResponseWriter, req bunrouter.Request) error
type SigninBody ¶
type SigninBody struct { Method model.CredentialMethod `validate:"oneof=PASSWORD OAUTH"` Key *string `validate:"required_if=Method PASSWORD,omitempty"` Password *string `validate:"required_if=Method PASSWORD,omitempty"` Provider *string `validate:"required_if=Method OAUTH,omitempty"` Code *string `validate:"required_if=Method OAUTH,omitempty"` State *uuid.UUID `validate:"required_if=Method OAUTH,omitempty"` }
type SigninHandler ¶
type SigninHandler struct { *common.BaseHanlder JWTService *jwtservice.JWTService }
func (*SigninHandler) Signin ¶
func (h *SigninHandler) Signin(w http.ResponseWriter, req bunrouter.Request) error
type SignoutHandler ¶
type SignoutHandler struct {
*common.BaseHanlder
}
func (*SignoutHandler) Signount ¶
func (h *SignoutHandler) Signount(w http.ResponseWriter, req bunrouter.Request) error
type SignupBody ¶
type SignupHandler ¶
type SignupHandler struct {
*common.BaseHanlder
}
func (*SignupHandler) Signup ¶
func (h *SignupHandler) Signup(w http.ResponseWriter, req bunrouter.Request) error
Click to show internal directories.
Click to hide internal directories.