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: 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) Destroy added in v1.31.0

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

func (*Session) DestroyAll added in v1.31.0

func (s *Session) DestroyAll(ctx context.Context, userID string) (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.SourceArray, 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