Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidRequestID = fmt.Errorf("invalid request id") ErrInvalidRequestCID = fmt.Errorf("invalid request cid") )
View Source
var (
MaxTime = time.Unix(1<<63-62135596801, 999999999)
)
Functions ¶
This section is empty.
Types ¶
type ItemMetadata ¶
type ItemParams ¶
type ItemStore ¶
type ItemStore interface { NewItem(ctx context.Context, params ItemParams) error ListItems(ctx context.Context) ([]*Item, error) GetItem(ctx context.Context, id uuid.UUID) (*Item, error) }
ItemStore is an interface to retrieve and store items
type QueueRepository ¶
type QueueRepository interface { List(context.Context) ([]*Item, error) Get(context.Context, uuid.UUID) (*Item, error) Create(context.Context, ItemParams) error }
QueueRepository is a repository of Queue items
func NewQueueRepository ¶
func NewQueueRepository(repo ItemStore, queue queue.Queue, taskFactory task.TaskFactory) (QueueRepository, error)
Click to show internal directories.
Click to hide internal directories.