Documentation ¶
Index ¶
- func CreateUser(db *gorm.DB, username string) (error, string)
- func DeleteExpiredKeys(db *gorm.DB)
- func DeleteKey(db *gorm.DB, key string)
- func DeleteUser(db *gorm.DB, username string) bool
- func GenerateKey(db *gorm.DB, user User) string
- func GetApiKey(db *gorm.DB, username string) (string, bool)
- func Init(lite bool) *gorm.DB
- func OnlyAdmin(db *gorm.DB, key string) bool
- func UpdateUserKey(db *gorm.DB, username string) string
- func VerifyKey(db *gorm.DB, key string) bool
- type Key
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteExpiredKeys ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.