mongo

package
v1.29.0-mobile.11 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2018 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	*storeStructuredMongo.Session
}

func (*Session) Create

func (s *Session) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)

func (*Session) Delete

func (s *Session) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)

func (*Session) EnsureIndexes

func (s *Session) EnsureIndexes() error

func (*Session) Get

func (s *Session) Get(ctx context.Context, id string) (*dataSource.Source, error)

func (*Session) List

func (s *Session) List(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.Sources, error)

func (*Session) Update

func (s *Session) Update(ctx context.Context, id string, condition *request.Condition, update *dataSource.Update) (*dataSource.Source, error)

type Store

type Store struct {
	*storeStructuredMongo.Store
}

func NewStore

func NewStore(config *storeStructuredMongo.Config, logger log.Logger) (*Store, error)

func (*Store) EnsureIndexes

func (s *Store) EnsureIndexes() error

func (*Store) NewSession

func (s *Store) NewSession() dataSourceStoreStructured.Session

Jump to

Keyboard shortcuts

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