Documentation
¶
Index ¶
- Variables
- type Controller
- type Option
- type Service
- func (x *Service) Clear(ctx context.Context) (err error)
- func (x *Service) Key(name string) string
- func (x *Service) Lists(ctx context.Context) (data []string, err error)
- func (x *Service) Remove(ctx context.Context, name string) error
- func (x *Service) Renew(ctx context.Context, userId string) error
- func (x *Service) Scan(ctx context.Context, cursor uint64) ([]string, uint64, error)
- func (x *Service) Set(ctx context.Context, name string, jti string) error
- func (x *Service) Verify(ctx context.Context, name string, jti string) (result bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Provides = wire.NewSet( wire.Struct(new(Controller), "*"), )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
Service *Service
}
func (*Controller) Clear ¶
func (x *Controller) Clear(ctx context.Context, c *app.RequestContext)
Clear sessions @router /sessions [DELETE]
func (*Controller) Lists ¶
func (x *Controller) Lists(ctx context.Context, c *app.RequestContext)
Lists all session user IDs @router /sessions [GET]
func (*Controller) Remove ¶
func (x *Controller) Remove(ctx context.Context, c *app.RequestContext)
Remove Session @router /sessions/:uid [DELETE]
type Option ¶
type Option func(x *Service)
func SetDynamicValues ¶
func SetDynamicValues(v *values.DynamicValues) Option
func SetNamespace ¶
Click to show internal directories.
Click to hide internal directories.