Documentation ¶
Index ¶
Constants ¶
View Source
const Collection = "users"
Collection is a name of the MongoDB collection for Users.
Variables ¶
View Source
var ( // ErrEmailNotFound indicates that given email does not exist on database. ErrEmailNotFound = errors.New("given email does not exist") // ErrEmailDuplicate indicates that given email is exists on database. ErrEmailDuplicate = errors.New("given email exists") )
Functions ¶
This section is empty.
Types ¶
type MemoryUser ¶
type MemoryUser struct {
// contains filtered or unexported fields
}
func NewMemoryUser ¶
func NewMemoryUser() *MemoryUser
Click to show internal directories.
Click to hide internal directories.