Documentation ¶
Index ¶
- type Store
- type TaskIterator
- type TaskSession
- func (t *TaskSession) CreateTask(ctx context.Context, create *task.TaskCreate) (*task.Task, error)
- func (t *TaskSession) DeleteTask(ctx context.Context, id string) error
- func (t *TaskSession) EnsureIndexes() error
- func (t *TaskSession) GetTask(ctx context.Context, id string) (*task.Task, error)
- func (t *TaskSession) IteratePending(ctx context.Context) store.TaskIterator
- func (t *TaskSession) ListTasks(ctx context.Context, filter *task.TaskFilter, pagination *page.Pagination) (task.Tasks, error)
- func (t *TaskSession) UpdateFromState(ctx context.Context, tsk *task.Task, state string) (*task.Task, error)
- func (t *TaskSession) UpdateTask(ctx context.Context, id string, update *task.TaskUpdate) (*task.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
func (*Store) EnsureIndexes ¶ added in v1.20.0
func (*Store) NewTaskSession ¶ added in v1.20.0
func (s *Store) NewTaskSession() store.TaskSession
type TaskIterator ¶ added in v1.20.0
type TaskIterator struct {
// contains filtered or unexported fields
}
func (*TaskIterator) Close ¶ added in v1.20.0
func (t *TaskIterator) Close() error
func (*TaskIterator) Error ¶ added in v1.20.0
func (t *TaskIterator) Error() error
type TaskSession ¶ added in v1.20.0
func (*TaskSession) CreateTask ¶ added in v1.20.0
func (t *TaskSession) CreateTask(ctx context.Context, create *task.TaskCreate) (*task.Task, error)
func (*TaskSession) DeleteTask ¶ added in v1.20.0
func (t *TaskSession) DeleteTask(ctx context.Context, id string) error
func (*TaskSession) EnsureIndexes ¶ added in v1.20.0
func (t *TaskSession) EnsureIndexes() error
func (*TaskSession) IteratePending ¶ added in v1.20.0
func (t *TaskSession) IteratePending(ctx context.Context) store.TaskIterator
func (*TaskSession) ListTasks ¶ added in v1.20.0
func (t *TaskSession) ListTasks(ctx context.Context, filter *task.TaskFilter, pagination *page.Pagination) (task.Tasks, error)
func (*TaskSession) UpdateFromState ¶ added in v1.20.0
func (*TaskSession) UpdateTask ¶ added in v1.20.0
func (t *TaskSession) UpdateTask(ctx context.Context, id string, update *task.TaskUpdate) (*task.Task, error)
Click to show internal directories.
Click to hide internal directories.