Documentation
¶
Index ¶
- type Service
- func (s *Service) RunBlacklistNow(ctx context.Context) (model.BlacklistRecheckResult, error)
- func (s *Service) RunDue(ctx context.Context) (int, error)
- func (s *Service) RunSourceNow(ctx context.Context, source string) (json.RawMessage, error)
- func (s *Service) RunStartup(ctx context.Context) (int, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) RunBlacklistNow ¶
func (*Service) RunSourceNow ¶
type Store ¶
type Store interface {
GetBlacklistRecheckSettings(context.Context) (model.BlacklistRecheckSettings, error)
ClaimDueBlacklistRecheck(context.Context, time.Time, time.Time) (*model.BlacklistRecheckSettings, error)
RecordBlacklistRecheckRun(context.Context, *time.Time, error) error
CreateBlacklistRechecks(context.Context, model.BlacklistRecheckSettings) (model.BlacklistRecheckResult, error)
ListSourceSyncSchedules(context.Context) ([]model.SourceSyncSchedule, error)
GetSourceSyncSchedule(context.Context, string) (model.SourceSyncSchedule, error)
ClaimDueSourceSyncSchedules(context.Context, time.Time, time.Time, int) ([]model.SourceSyncSchedule, error)
RecordSourceSyncRun(context.Context, string, *time.Time, error) error
StartAutomationRun(context.Context, model.StartAutomationRunRequest) (model.AutomationRun, error)
FinishAutomationRun(context.Context, string, string, json.RawMessage, error) error
}
Click to show internal directories.
Click to hide internal directories.