mgosimplekv

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: LGPL-3.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSession

func ContextWithSession(ctx context.Context, session *mgo.Session) context.Context

ContextWithSession returns the given context associated with the given session. When the context is passed to one of the Store methods, the session will be used for database access.

func NewStore

func NewStore(coll *mgo.Collection) (simplekv.Store, error)

NewStore returns a new Store implementation that uses the given mongo collection for storage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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