mongo

package
v0.0.0-...-48412d5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

mongo.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(mgoSession *mgo.Session, db string) *Store

func (*Store) All

func (s *Store) All() ([]user.User, error)

func (*Store) ChangePassword

func (s *Store) ChangePassword(id, password string) error

func (*Store) CreateUser

func (s *Store) CreateUser(u *user.User) error

func (*Store) DeleteUser

func (s *Store) DeleteUser(id string) error

func (*Store) GetUser

func (s *Store) GetUser(id string) (*user.User, error)

func (*Store) GetUserByUsername

func (s *Store) GetUserByUsername(username string) (*user.User, error)

func (*Store) UpdateUser

func (s *Store) UpdateUser(id, email, name string) (*user.User, error)

Jump to

Keyboard shortcuts

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