mongo

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	*storeStructuredMongo.Store
}

func NewStore added in v1.26.0

func NewStore(cfg *storeStructuredMongo.Config, lgr log.Logger) (*Store, error)

func (*Store) EnsureIndexes added in v1.20.0

func (s *Store) EnsureIndexes() error

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

func (*TaskIterator) Next added in v1.20.0

func (t *TaskIterator) Next(tsk *task.Task) bool

type TaskSession added in v1.20.0

type TaskSession struct {
	*storeStructuredMongo.Session
}

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) GetTask added in v1.20.0

func (t *TaskSession) GetTask(ctx context.Context, id string) (*task.Task, 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 (t *TaskSession) UpdateFromState(ctx context.Context, tsk *task.Task, state string) (*task.Task, error)

func (*TaskSession) UpdateTask added in v1.20.0

func (t *TaskSession) UpdateTask(ctx context.Context, id string, update *task.TaskUpdate) (*task.Task, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL