Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interval ¶
type Interval interface {
FromNowWhenNext(policy types.PluginPolicy) (time.Time, error)
}
type NilService ¶
type NilService struct{}
NilService implements the scheduler.Service for plugins where scheduling not required
func NewNilService ¶
func NewNilService() *NilService
func (*NilService) Create ¶
func (s *NilService) Create(_ context.Context, _ pgx.Tx, _ types.PluginPolicy) error
func (*NilService) Update ¶
func (s *NilService) Update(_ context.Context, _ pgx.Tx, _, _ types.PluginPolicy) error
type PolicyFetcher ¶
type Storage ¶
type Storage interface {
Tx() storage.Tx
GetByPolicy(ctx context.Context, policyID uuid.UUID) (Scheduler, error)
Create(ctx context.Context, policyID uuid.UUID, next time.Time) error
Delete(ctx context.Context, policyID uuid.UUID) error
GetPending(ctx context.Context) ([]Scheduler, error)
SetNext(ctx context.Context, policyID uuid.UUID, next time.Time) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.