mongo

package
v0.0.0-...-67002a4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2014 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoStore

type MongoStore struct {
	*mgo.Session
	// contains filtered or unexported fields
}

func NewMongoStore

func NewMongoStore(url string) (*MongoStore, error)

func (*MongoStore) AddGroup

func (s *MongoStore) AddGroup(group *Group) error

func (*MongoStore) AddMember

func (s *MongoStore) AddMember(groupId string, user User) error

func (*MongoStore) DeleteGroup

func (s *MongoStore) DeleteGroup(groupId string) error

func (*MongoStore) DeleteMember

func (s *MongoStore) DeleteMember(groupId string, user User) error

func (*MongoStore) GetGroup

func (s *MongoStore) GetGroup(groupId string) (*Group, error)

Jump to

Keyboard shortcuts

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