mongo

package
v1.29.0-mobile.7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 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 *blobStoreStructured.Create) (*blob.Blob, 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) (*blob.Blob, error)

func (*Session) List

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

func (*Session) Update

func (s *Session) Update(ctx context.Context, id string, condition *request.Condition, update *blobStoreStructured.Update) (*blob.Blob, 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() blobStoreStructured.Session

Jump to

Keyboard shortcuts

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