Documentation ¶
Index ¶
- type Users
- func (users Users) Activate(email string) string
- func (users Users) Add(mainData config.UserMain, extraData config.UserExtra) (string, string)
- func (users Users) Auth(username, email, password string) (bool, string, string)
- func (users Users) Delete(userID, username, password string) string
- func (users Users) Disconnect()
- func (users Users) Get(userID, collectionName string, data interface{}) error
- func (users Users) GetByUsernameOrEmail(username, email string) (config.UserMain, string)
- func (users *Users) Init()
- func (users Users) Update(userID string, update interface{}, collectionName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Users ¶
type Users struct { DBName string // contains filtered or unexported fields }
Users is used to handle user data
func (Users) Disconnect ¶
func (users Users) Disconnect()
Disconnect is used to disconnect from the mongodb
func (Users) GetByUsernameOrEmail ¶
GetByUsernameOrEmail is used to get user based on username or email
Click to show internal directories.
Click to hide internal directories.