Documentation ¶
Index ¶
- type TaskView
- type TaskViewImpl
- func (v TaskViewImpl) ByID(ctx context.Context, taskID string) (*domain.Task, error)
- func (v TaskViewImpl) Exists(ctx context.Context, taskID string) (bool, error)
- func (v TaskViewImpl) InQueue(ctx context.Context, queue string) ([]*domain.Task, error)
- func (v TaskViewImpl) NextInQueue(ctx context.Context, queue string) (*domain.Task, error)
- func (v TaskViewImpl) QueueStats(ctx context.Context, queue string) (map[string][]string, error)
- func (v TaskViewImpl) TimedOut(ctx context.Context) ([]*domain.Task, error)
- type TaskViewLocker
- func (v TaskViewLocker) ByID(ctx context.Context, taskID string) (*domain.Task, error)
- func (v TaskViewLocker) Exists(ctx context.Context, taskID string) (bool, error)
- func (v TaskViewLocker) InQueue(ctx context.Context, queue string) ([]*domain.Task, error)
- func (v TaskViewLocker) NextInQueue(ctx context.Context, queue string) (*domain.Task, error)
- func (v TaskViewLocker) QueueStats(ctx context.Context, queue string) (map[string][]string, error)
- func (v TaskViewLocker) TimedOut(ctx context.Context) ([]*domain.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskView ¶
type TaskView interface { Exists(ctx context.Context, taskID string) (bool, error) ByID(ctx context.Context, taskID string) (*domain.Task, error) NextInQueue(ctx context.Context, queue string) (*domain.Task, error) InQueue(ctx context.Context, queue string) ([]*domain.Task, error) QueueStats(ctx context.Context, queue string) (map[string][]string, error) TimedOut(ctx context.Context) ([]*domain.Task, error) }
type TaskViewImpl ¶
type TaskViewImpl struct {
// contains filtered or unexported fields
}
func NewTaskView ¶
func NewTaskView(redis *redis.Client) TaskViewImpl
func (TaskViewImpl) NextInQueue ¶
func (TaskViewImpl) QueueStats ¶ added in v1.2.0
type TaskViewLocker ¶
type TaskViewLocker struct {
// contains filtered or unexported fields
}
func NewTaskViewLocker ¶
func NewTaskViewLocker(locker *redislock.Client, next TaskView) TaskViewLocker
func (TaskViewLocker) NextInQueue ¶
func (TaskViewLocker) QueueStats ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.