Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCanNotConnectWithDatabase = errors.New("Can not connect with database")
ErrCanNotConnectWithDatabase error if database is unreachable
View Source
var ErrUserNotFound = errors.New("User does not exist")
ErrUserNotFound error if user does not exist in database
Functions ¶
func CloseConnection ¶
CloseConnection closes the connection to the database
func GetUserByUsername ¶
GetUserByUsername return the models.User object based on the username
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.