Documentation ¶
Index ¶
- Constants
- Variables
- func Create(user *User) error
- func GetAll(opts *Options) (*model.Result, error)
- func GetByEmail(addr string, opts *Options) (*model.Result, error)
- func GetByLockedState(locked bool, opts *Options) (*model.Result, error)
- func Remove(id string) error
- func Replace(id string, user *User) error
- type Options
- type User
Constants ¶
View Source
const Collection = "users"
Collection indicates the MongoDB user collection
Variables ¶
View Source
var ( // ErrInvalidEmail indicates that a email address is not valid ErrInvalidEmail = errors.New("invalid e-mail address") )
Functions ¶
func GetByEmail ¶
GetByEmail returns a result based on email address
func GetByLockedState ¶
GetByLockedState returns a result based on lock state
Types ¶
Click to show internal directories.
Click to hide internal directories.