mongo

package
v0.0.0-...-a6721f7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoUserStore

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

func NewMongoUserStore

func NewMongoUserStore(url string) *MongoUserStore

NewMongoUserStore returns an unconnected MongoUserStore that satisfies the UserStore interface. You must call Connect() on the returned store before using it.

func (*MongoUserStore) Connect

func (m *MongoUserStore) Connect() error

func (*MongoUserStore) Get

func (m *MongoUserStore) Get(id, provider string) (*user.User, error)

Get returns a user from the Mongo Store

func (*MongoUserStore) Save

func (m *MongoUserStore) Save(u *user.User) error

Save adds a user to the Mongo Store

func (*MongoUserStore) Update

func (m *MongoUserStore) Update(*user.User) error

Update updates a user in the Mongo Store

Jump to

Keyboard shortcuts

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