Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitializeFirstRun = runInit
Functions ¶
Types ¶
type AuthProfile ¶
type AuthProfile struct {
gorm.Model
Roles []*Role `gorm:"many2many:user_roles;"`
Username string
// contains filtered or unexported fields
}
func (AuthProfile) Authenticate ¶
func (ap AuthProfile) Authenticate(username string, password string) (bool, error)
type GameProfile ¶
type User ¶
type User struct {
gorm.Model
Name string
GameProfile GameProfile
GameProfileID int
AuthProfile AuthProfile
AuthProfileID int
}
Click to show internal directories.
Click to hide internal directories.