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" json:"login"` Username string `json:"username"` Password string `json:"-"` }
func GetUserById ¶
func GetUserLogin ¶
Click to show internal directories.
Click to hide internal directories.