mongo

package
v1.20.0-dexcom-api.9 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: BSD-3-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 {
	*mongo.Store
}

func New

func New(cfg *mongo.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 {
	*mongo.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