Help us shape the future of Go! Take the 2026 Go Developer Survey

schedules

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2023 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	SchedulesService *Service
}

func (*Controller) Deploy

func (x *Controller) Deploy(ctx context.Context, c *app.RequestContext)

func (*Controller) Keys

func (x *Controller) Keys(_ 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) Undeploy

func (x *Controller) Undeploy(ctx context.Context, c *app.RequestContext)

type DeployDto

type DeployDto struct {
	Id primitive.ObjectID `json:"id,required"`
}

type KeysDto

type KeysDto struct {
	Id string `path:"id,required"`
}

type M

type M = map[string]interface{}

type PingDto

type PingDto struct {
	Ids []string `json:"ids,required"`
}

type RevokeDto

type RevokeDto struct {
	Id  string `json:"id,required"`
	Key string `json:"key,required"`
}

type Service

type Service struct {
	*common.Inject
	Clusters *clusters.Service
}

func (*Service) Deploy

func (x *Service) Deploy(ctx context.Context, id primitive.ObjectID) (err error)

func (*Service) Event

func (x *Service) Event() (err error)

func (*Service) Get

func (x *Service) Get(id string, key string) (r typ.ScheduleOption, err error)

func (*Service) Keys

func (x *Service) Keys(id string) (keys []string, err error)

func (*Service) Ping

func (x *Service) Ping(id string) (r bool, err error)

func (*Service) Revoke

func (x *Service) Revoke(id string, key string) (err error)

func (*Service) Set

func (x *Service) Set(id string, key string, option typ.ScheduleOption) (err error)

func (*Service) Undeploy

func (x *Service) Undeploy(ctx context.Context, id primitive.ObjectID) (err error)

type UnDeployDto

type UnDeployDto struct {
	Id primitive.ObjectID `json:"id,required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL