Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimOptions ¶
type Repository ¶
type Repository interface { // crud Get(ctx context.Context, id string) (*jobmodel.Job, error) List(ctx context.Context, args *jobmodel.ListJobsQueryParams) (*jobmodel.ListJobsResponse, error) Delete(ctx context.Context, id string) error // job queue semantics Queue(ctx context.Context, j *jobmodel.Job) (*jobmodel.Job, error) Claim(ctx context.Context, opts *ClaimOptions) (*jobmodel.Job, error) Release(ctx context.Context, id string) (*jobmodel.Job, error) Success(ctx context.Context, id string) (*jobmodel.Job, error) Error(ctx context.Context, id string) (*jobmodel.Job, error) }
Click to show internal directories.
Click to hide internal directories.