db

package
v0.0.0-...-dfd637f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRefreshToken

func CheckRefreshToken(jwtId string) bool

func DeleteRefreshToken

func DeleteRefreshToken(jwtId string)

func DeleteUser

func DeleteUser(uuid string)

func FetchUserById

func FetchUserById(uuid string) (models.User, error)

func FetchUserByUsername

func FetchUserByUsername(username string) (models.User, string, error)

func InitDB

func InitDB()

func LogUserIn

func LogUserIn(username string, password string) (models.User, string, error)

func StoreRefreshToken

func StoreRefreshToken() (jwtId string, err error)

func StoreUser

func StoreUser(username string, password string, role string) (uuid string, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL