Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface {
PendingJobs(ctx context.Context, createdAtCursor *time.Time) ([]*store.Job, error)
InProgressJobs(ctx context.Context, createdAtCursor *time.Time) ([]*store.LeasedJob, error)
AssignPendingJob(ctx context.Context, leaserID string, leaseDuration *time.Duration, jobTypes ...string) (*store.LeasedJob, error)
MarkJobAsDone(ctx context.Context, jobID string, leaserID string) error
MarkJobAsFailed(ctx context.Context, jobID string, leaserID string) error
serverops.ServiceMeta
}
func NewService ¶
Click to show internal directories.
Click to hide internal directories.