Documentation ¶
Index ¶
- Variables
- type Controller
- type KeysDto
- type M
- type PingDto
- type RevokeDto
- type Service
- func (x *Service) Client(node string) (client *schedule.Client, err error)
- func (x *Service) Keys(ctx context.Context, id primitive.ObjectID) (keys []string, err error)
- func (x *Service) Ping(node string) (r bool, err error)
- func (x *Service) Revoke(node string, key string) (err error)
- func (x *Service) Set(ctx context.Context, id primitive.ObjectID, key string, ...) (err error)
- func (x *Service) State(node string, key string) (r sctyp.ScheduleOption, err error)
- type StatesDto
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
SchedulesService *Service
}
func (*Controller) Keys ¶
func (x *Controller) Keys(ctx context.Context, c *app.RequestContext)
func (*Controller) Ping ¶
func (x *Controller) Ping(_ context.Context, c *app.RequestContext)
func (*Controller) Revoke ¶
func (x *Controller) Revoke(_ context.Context, c *app.RequestContext)
func (*Controller) State ¶ added in v0.1.8
func (x *Controller) State(_ context.Context, c *app.RequestContext)
type KeysDto ¶
type KeysDto struct {
Id string `path:"id,required" vd:"mongoId($);msg:'the document id must be an ObjectId'"`
}
Click to show internal directories.
Click to hide internal directories.