Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseRepo ¶
type DatabaseRepo interface { // User model functions AllUsers() ([]models.User, error) GetUserByID(userID int64) (models.User, error) GetUserByEmail(email string) (models.User, error) InsertUser(user models.User) (int64, error) UpdateUser(user models.User) error UpdatePasswordForUser(user models.User, newHash string) error Authenticate(email string, testPassword string) (int64, string, error) }
DatabaseRepo interface which specifies set of operations for communicating with the database.
Click to show internal directories.
Click to hide internal directories.