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 ¶
CheckRefreshToken : is the refresh token valid?
func DeleteRefreshToken ¶
DeleteRefreshToken : remove refresh token from db
func FetchUserById ¶
FetchUserById : grab a user by their uuid
func FetchUserByUsername ¶
FetchUserByUsername : returns the user and the userId or an error if not found
func StoreRefreshToken ¶
StoreRefreshToken : create and add refresh token to our db
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.