Documentation
¶
Index ¶
- Variables
- type Controller
- type Service
- func (x *Service) Clear(ctx context.Context) (err error)
- func (x *Service) Key(uid string) string
- func (x *Service) Lists(ctx context.Context) (data []string, err error)
- func (x *Service) Remove(ctx context.Context, uid string) error
- func (x *Service) Renew(ctx context.Context, uid string) error
- func (x *Service) Set(ctx context.Context, uid string, jti string) error
- func (x *Service) Verify(ctx context.Context, uid string, jti string) (result bool, err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
SessionsService *Service
}
func (*Controller) Clear ¶
func (x *Controller) Clear(ctx context.Context, c *app.RequestContext)
Clear 清除所有会话 @router /sessions [DELETE]
func (*Controller) In ¶ added in v0.0.28
func (x *Controller) In(r *route.RouterGroup)
func (*Controller) Lists ¶
func (x *Controller) Lists(ctx context.Context, c *app.RequestContext)
Lists 列出所有会话用户 ID @router /sessions [GET]
func (*Controller) Remove ¶
func (x *Controller) Remove(ctx context.Context, c *app.RequestContext)
Remove 移除会话 @router /sessions/:uid [DELETE]
Click to show internal directories.
Click to hide internal directories.