Documentation
¶
Index ¶
- Variables
- func Create(username string, email string, password string, status bool) (err error)
- func GetUserData(userId int, includeInactive bool) (userData user_structs.UserData, err error)
- func Login(username string, password string) (token string, err error)
- func SetLastLogin(userId int, lastLoginTime time.Time) (err error)
- func UpdateSessionToken(userId int) (token string, err error)
- func ValidateSession(oldToken string, refresh bool) (newToken string, userId int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCredentials = errors.New("Invalid username or password")
View Source
var ErrMissingCredentials = errors.New("Missing username and/ or password")
View Source
var ErrUnexpected = errors.New("Internal server error")
Functions ¶
func GetUserData ¶
func GetUserData(userId int, includeInactive bool) (userData user_structs.UserData, err error)
func UpdateSessionToken ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.