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: 11 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) Delete

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

func (*Session) Destroy

func (s *Session) Destroy(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, condition *request.Condition) (*user.User, 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() userStoreStructured.Session

Jump to

Keyboard shortcuts

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