Documentation ¶
Index ¶
- func CheckRefreshToken(jti string) bool
- func DeleteRefreshToken(jti string) error
- func DeleteUser(uuid string)
- func FetchUserById(uuid string) (models.User, error)
- func FetchUserByUsername(username string) (models.User, string, error)
- func InitDB()
- func LogUserIn(username string, password string) (models.User, string, error)
- func StoreRefreshToken() (jti string, err error)
- func StoreUser(username string, password string, role string) (uuid string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRefreshToken ¶
func DeleteRefreshToken ¶
func DeleteUser ¶
func DeleteUser(uuid string)
func FetchUserByUsername ¶
returns the user and the userId or an error if not found
func StoreRefreshToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.