Documentation
¶
Index ¶
- Variables
- type Controller
- func (x *Controller) ScheduleKeys(ctx context.Context, c *app.RequestContext)
- func (x *Controller) SchedulePing(_ context.Context, c *app.RequestContext)
- func (x *Controller) ScheduleRevoke(ctx context.Context, c *app.RequestContext)
- func (x *Controller) ScheduleState(_ context.Context, c *app.RequestContext)
- type M
- type ScheduleKeysDto
- type SchedulePingDto
- type ScheduleRevokeDto
- type ScheduleStatesDto
- type Service
- func (x *Service) Schedule(node string) (client *schedule.Client, err error)
- func (x *Service) ScheduleKeys(ctx context.Context, id primitive.ObjectID) (keys []string, err error)
- func (x *Service) SchedulePing(node string) (r bool, err error)
- func (x *Service) ScheduleRevoke(ctx context.Context, id primitive.ObjectID, key string) (err error)
- func (x *Service) ScheduleSet(ctx context.Context, id primitive.ObjectID, key string, ...) (err error)
- func (x *Service) ScheduleState(node string, key string) (r sctyp.ScheduleOption, err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
EndpointsX *Service
}
func (*Controller) ScheduleKeys ¶
func (x *Controller) ScheduleKeys(ctx context.Context, c *app.RequestContext)
func (*Controller) SchedulePing ¶
func (x *Controller) SchedulePing(_ context.Context, c *app.RequestContext)
func (*Controller) ScheduleRevoke ¶
func (x *Controller) ScheduleRevoke(ctx context.Context, c *app.RequestContext)
func (*Controller) ScheduleState ¶
func (x *Controller) ScheduleState(_ context.Context, c *app.RequestContext)
type ScheduleKeysDto ¶
type ScheduleKeysDto struct {
Id string `path:"id" vd:"mongodb"`
}
type SchedulePingDto ¶
type SchedulePingDto struct {
Nodes []string `json:"nodes" vd:"gt=0"`
}
type ScheduleRevokeDto ¶
type ScheduleStatesDto ¶
type Service ¶
func (*Service) ScheduleKeys ¶
func (*Service) ScheduleRevoke ¶
func (*Service) ScheduleSet ¶
func (*Service) ScheduleState ¶
Click to show internal directories.
Click to hide internal directories.