Documentation
¶
Index ¶
- Variables
- type Mongo
- func (m *Mongo) CreateAddress(a *users.Address, userid string) error
- func (m *Mongo) CreateCard(ca *users.Card, userid string) error
- func (m *Mongo) CreateUser(u *users.User) error
- func (m *Mongo) Delete(entity, id string) error
- func (m *Mongo) FindallUsers() ([]MongoUser, error)
- func (m *Mongo) Findallkeys(prefix string) []string
- func (m *Mongo) GetAddress(id string) (users.Address, error)
- func (m *Mongo) GetAddresses() ([]users.Address, error)
- func (m *Mongo) GetCard(id string) (users.Card, error)
- func (m *Mongo) GetCards() ([]users.Card, error)
- func (m *Mongo) GetUser(id string) (users.User, error)
- func (m *Mongo) GetUserAttributes(u *users.User) error
- func (m *Mongo) GetUserByName(name string) (users.User, error)
- func (m *Mongo) GetUsers() ([]users.User, error)
- func (m *Mongo) Init() error
- func (m *Mongo) Ping() error
- type MongoAddress
- type MongoCard
- type MongoUser
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidHexID = errors.New("Invalid Id Hex")
)
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) FindallUsers ¶
func (*Mongo) Findallkeys ¶
type MongoAddress ¶
Click to show internal directories.
Click to hide internal directories.