Documentation ¶
Index ¶
Constants ¶
View Source
const Dtime = 3600
Variables ¶
View Source
var Sessions sync.Map
Functions ¶
func DeleteSession ¶
func DeleteSession(hash string)
func HashPassword ¶
func UserCreate ¶
func UserCreate(usr User)
func UserModify ¶
func UserModify(usr User)
Types ¶
type User ¶
type User struct { Id uint64 `gorm:"primarykey" json:"id"` Access uint `json:"access"` Login string `gorm:"index:usr_login" json:"login"` Username string `json:"username"` Password string `json:"-"` Attribute string `gorm:"index:usr_attr" json:"attribute"` }
func GetUserAttribute ¶ added in v0.0.19
func GetUserById ¶
func GetUserLogin ¶
Click to show internal directories.
Click to hide internal directories.