Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICaptcha ¶
type IGToken ¶
type IGToken interface { GenerateToken(ctx context.Context, key string, data interface{}) (keys string, err error) Middleware(group *ghttp.RouterGroup) error ParseToken(r *ghttp.Request) (*gtoken.CustomClaims, error) IsLogin(r *ghttp.Request) (b bool, failed *gtoken.AuthFailed) GetRequestToken(r *ghttp.Request) (token string) RemoveToken(ctx context.Context, token string) (err error) }
func GToken ¶
func GToken(options *model.TokenOptions) IGToken
type IMiddleware ¶
func Middleware ¶
func Middleware() IMiddleware
Click to show internal directories.
Click to hide internal directories.