mongostore

package
v0.0.0-...-8895ee5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mongostore implements stores declared in the top-level stores package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStores

func NewStores(s *mgo.Session) store.Stores

func Session

func Session(ctx context.Context) *mgo.Session

func WithSession

func WithSession(ctx context.Context, s *mgo.Session) context.Context

Types

type AccountsStore

type AccountsStore struct {
	// contains filtered or unexported fields
}

func NewAccountsStore

func NewAccountsStore(s *mgo.Session) *AccountsStore

func (*AccountsStore) Create

func (s *AccountsStore) Create(ctx context.Context, newUser *api.User, email *api.EmailAddress) (*api.User, error)

type PasswordStore

type PasswordStore struct {
	// contains filtered or unexported fields
}

func NewPasswordStore

func NewPasswordStore(s *mgo.Session) *PasswordStore

func (PasswordStore) SetPassword

func (s PasswordStore) SetPassword(ctx context.Context, ID string, password string) error

type UsersStore

type UsersStore struct {
	// contains filtered or unexported fields
}

func NewUsersStore

func NewUsersStore(s *mgo.Session) *UsersStore

func (*UsersStore) Get

func (s *UsersStore) Get(ctx context.Context, spec api.UserSpec) (*api.User, error)

Jump to

Keyboard shortcuts

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