Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(user User)
Types ¶
type User ¶
type User struct { gorm.Model Email string `json:"email" gorm:"not null;unique_index"` Username string `json:"username" gorm:"not null;unique_index"` HashedPassword []byte DisplayName string `json:"displayName"` }
func GetAllUsers ¶
func GetUserByEmail ¶
func GetUserByUsername ¶
Click to show internal directories.
Click to hide internal directories.