Documentation ¶
Index ¶
- type Controller
- type Option
- type RemoveDto
- type ScanFn
- type Service
- func (x *Service) Clear(ctx context.Context) int64
- func (x *Service) Key(name string) string
- func (x *Service) Lists(ctx context.Context) (data []string)
- func (x *Service) Remove(ctx context.Context, name string) int64
- func (x *Service) Renew(ctx context.Context, userId string) bool
- func (x *Service) Scan(ctx context.Context, fn ScanFn)
- func (x *Service) Set(ctx context.Context, name string, jti string) string
- func (x *Service) Verify(ctx context.Context, name string, jti string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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)
func (*Controller) Lists ¶
func (x *Controller) Lists(ctx context.Context, c *app.RequestContext)
func (*Controller) Remove ¶
func (x *Controller) Remove(ctx context.Context, c *app.RequestContext)
type Option ¶
type Option func(x *Service)
func SetDynamicValues ¶
func SetDynamicValues(v *values.DynamicValues) Option
func SetNamespace ¶
type RemoveDto ¶ added in v0.4.2
type RemoveDto struct {
Uid string `path:"uid,required" vd:"mongoId($);msg:'the document id must be an ObjectId'"`
}
type Service ¶
type Service struct { Namespace string RDb *redis.Client Values *values.DynamicValues }
Click to show internal directories.
Click to hide internal directories.