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, metadata *image.Metadata) (*image.Image, error)

func (*Session) Delete

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

func (*Session) DeleteAll

func (s *Session) DeleteAll(ctx context.Context, userID string) (bool, error)

func (*Session) Destroy

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

func (*Session) DestroyAll

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, condition *request.Condition) (*image.Image, error)

func (*Session) List

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

func (*Session) Update

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

Jump to

Keyboard shortcuts

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