Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { CloseConnection() error CreateUser(u *model.User) error GetUser(id string) (*model.User, error) GetUserByEmail(email string) (*model.User, error) SaveUser(u *model.User) error DeleteUser(id string) error }
DB is the interface which must be implemented by all db drivers
func NewConnection ¶
NewConnection creates a new database connection
Click to show internal directories.
Click to hide internal directories.