Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCredential = errors.New("invalid credential")
Functions ¶
Types ¶
type Credential ¶
type Credential struct { User uuid.UUID `json:"user,omitempty"` Hash [32]byte `json:"-"` Salt [18]byte `json:"-"` }
func NewCredential ¶
func NewCredential(plain string) (*Credential, error)
type Email ¶
type Login ¶
type Phone ¶
Click to show internal directories.
Click to hide internal directories.