Documentation ¶
Index ¶
- func Create(u UserDB) func(ctx context.Context, author string, data io.Reader) (interface{}, error)
- func Get(u UserDB) func(ctx context.Context, username string) (interface{}, error)
- func IsPasswordCorrect(u UserDB) func(ctx context.Context, username, password string) error
- type Email
- type Password
- type User
- type UserDB
- type Username
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { Username Username `json:"username"` Name string `json:"name"` Email Email `json:"email"` Password Password `json:"password,omitempty"` }
User represents a used of the application
Click to show internal directories.
Click to hide internal directories.