Documentation ¶
Index ¶
- func IsNotExist(e error) bool
- type DefaultUser
- type ErrNoUser
- type User
- func NewDefaultUser(username string, email string, password password.Password) (User, error)
- func NewDefaultUserRaw(udb UserDB, username string, email string, pswd password.Password) (User, error)
- func NewDefaultUserWithID(id string, username string, email string, password password.Password) (User, error)
- type UserDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotExist ¶
Types ¶
type DefaultUser ¶
type DefaultUser struct { User // contains filtered or unexported fields }
func (*DefaultUser) Email ¶
func (u *DefaultUser) Email() string
func (*DefaultUser) Id ¶
func (u *DefaultUser) Id() string
func (*DefaultUser) Password ¶
func (u *DefaultUser) Password() password.Password
func (*DefaultUser) Username ¶
func (u *DefaultUser) Username() string
Click to show internal directories.
Click to hide internal directories.