Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
Types ¶
type Account ¶
type AccountInterface ¶
type AccountInterface interface { ModelInterface All() ([]Account, error) Currency() (Currency, error) }
type CurrencyInterface ¶
type ModelInterface ¶
type User ¶
type User struct { Username string `json:"username" bson:"_id,omitempty"` Password string `json:"-" bson:"password,omitempty"` Roles []string `json:"roles" bson:"roles"` }
func (User) GetAccounts ¶
type UserInterface ¶
type UserInterface interface { ModelInterface Find(login string) error GetAccounts() ([]Account, error) }
Click to show internal directories.
Click to hide internal directories.