Documentation ¶
Index ¶
- Variables
- func CreateAddress(a *users.Address, userid string) error
- func CreateCard(c *users.Card, userid string) error
- func CreateUser(u *users.User) error
- func Delete(entity, id string) error
- func GetAddress(n string) (users.Address, error)
- func GetAddresses() ([]users.Address, error)
- func GetCard(n string) (users.Card, error)
- func GetCards() ([]users.Card, error)
- func GetUser(n string) (users.User, error)
- func GetUserAttributes(u *users.User) error
- func GetUserByName(n string) (users.User, error)
- func GetUsers() ([]users.User, error)
- func Init() error
- func Ping() error
- func Register(name string, db Database)
- func Set() error
- type Database
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateUser ¶
func GetAddresses ¶
func GetUserAttributes ¶
Types ¶
type Database ¶
type Database interface { Init() error GetUserByName(string) (users.User, error) GetUser(string) (users.User, error) GetUsers() ([]users.User, error) CreateUser(*users.User) error GetUserAttributes(*users.User) error GetAddress(string) (users.Address, error) GetAddresses() ([]users.Address, error) CreateAddress(*users.Address, string) error GetCard(string) (users.Card, error) GetCards() ([]users.Card, error) CreateCard(*users.Card, string) error Delete(string, string) error Ping() error }
Click to show internal directories.
Click to hide internal directories.