store

package
v0.0.0-...-1ae7566 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 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{}

MongoUserStore provides persistence logic for "users" collection.

func (*MongoUserStore) AddUser

func (store *MongoUserStore) AddUser(user model.User) error

AddUser insert new User

func (*MongoUserStore) GetUsers

func (store *MongoUserStore) GetUsers() []model.User

GetUsers returns all documents from the collection.

Jump to

Keyboard shortcuts

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