Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { client.Controller GetAddr() string }
A Controller represents an user client
func FindUserByEmail ¶
func FindUserByEmail(ctx context.Context, email string) (Controller, error)
FindUserByEmail returns the user with the given email
func New ¶
func New(client client.Controller, email string) Controller
New builds a brand new client with a provided password
type User ¶
type User struct { client.Controller `xorm:"extends"` //`json:"-" gorm:"foreignKey:ClientID, unique"` ID int64 `xorm:"pk autoincr"` //`json:"id" gorm:"primaryKey; autoIncrement:true"` Default string `xorm:"not null unique"` //`json:"default" gorm:"not null, unique"` Emails []string //`json:"emails" gorm:"not null"` }
A User represents a client of type user
Click to show internal directories.
Click to hide internal directories.