Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateUser ¶
AuthenticateUser is the function that checks if the given user and password are valid or not
func CheckIfUserExists ¶
CheckIfUserExists checks if there is an user with the given username on db
func InitDatabase ¶
func InitDatabase() error
InitDatabase initiates API Database by creating Users table.
func OpenDBConnection ¶
OpenDBConnection establish a connection with the MySQL DB.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.