Documentation
¶
Index ¶
- type Job
- type Payload
- type Schedule
- type Service
- func (s *Service) Add(name string, sched Schedule, payload Payload) (Job, error)
- func (s *Service) List(includeDisabled bool) []Job
- func (s *Service) Remove(id string) bool
- func (s *Service) RunNow(ctx context.Context, id string, force bool) (string, error)
- func (s *Service) Start(ctx context.Context) error
- func (s *Service) Stop()
- func (s *Service) Toggle(id string, disable bool) bool
- type State
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
ID string `json:"id"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
Schedule Schedule `json:"schedule"`
Payload Payload `json:"payload"`
State State `json:"state"`
CreatedAtMS int64 `json:"createdAtMs"`
UpdatedAtMS int64 `json:"updatedAtMs"`
DeleteAfterRun bool `json:"deleteAfterRun,omitempty"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
Click to show internal directories.
Click to hide internal directories.