Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxTime = time.Unix(1<<63-62135596801, 999999999) ErrSortNotSupported = fmt.Errorf("sort parameter not supported") )
View Source
var ( ErrInvalidRequestID = fmt.Errorf("invalid request id") ErrInvalidRequestCID = fmt.Errorf("invalid request cid") )
Functions ¶
This section is empty.
Types ¶
type ItemMetadata ¶
type ItemStore ¶
type ItemStore interface { NewItem(ctx context.Context, params ItemParams) error ListItems(ctx context.Context, params ListParams) ([]*Item, error) CountItems(ctx context.Context) (int64, error) GetItem(ctx context.Context, id uuid.UUID) (*Item, error) }
ItemStore is an interface to retrieve and store items
type ListParams ¶ added in v0.5.1
func NewListParams ¶ added in v0.5.4
func NewListParams() ListParams
type QueueRepository ¶
type QueueRepository interface { List(context.Context, ListParams) ([]*Item, error) Count(context.Context) (int64, 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, priorityQueue queue.Queue, secondaryQueue queue.Queue, taskFactory task.TaskFactory, nodeExecutor dag.NodeExecutor[dag.IOSpec]) (QueueRepository, error)
Click to show internal directories.
Click to hide internal directories.