Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthConfig auth.AuthConfig
Functions ¶
func InitializeUsers ¶
func InitializeUsers()
func MapClaimsToUser ¶
Called when the Tokens are created/refreshed.
Types ¶
type CtxUserValue ¶
type CtxUserValue struct{}
type User ¶
type User struct { gorm.Model `json:"-"` ID uint `gorm:"primarykey"` Email string `validate:"required,email"` FirstName string `validate:"required"` LastName string `validate:"required"` Password string `json:"-" writeOnly:"true" validate:"required"` TransportConfigs []transport.TransportConfig `json:"transports,omitempty" gorm:"many2many:user_transports;" validate:"-"` }
func (*User) CheckPassword ¶
func (User) ProcessMessage ¶
Click to show internal directories.
Click to hide internal directories.