Documentation
¶
Index ¶
Constants ¶
View Source
const (
SystemUser = "system"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶ added in v1.1.4
DeleteUser Removes the requested users account from the MongoDB database. Does not remove there account from Auth0. Returns ErrUserMissingId if email is empty string, returns ErrInvalidEmail if the email address passed is not valid, returns ErrUserDeleteFailed if the DeletedCount is less than 1, and returns nil otherwise
func GetUser ¶
GetUser Fetch a user based on their username. Returns ErrNoUser if the user cannot be found
func IndexUsers ¶ added in v1.1.4
IndexUsers List all users from the database, and return them in a slice. A limit can be provided to ensure that too many objects don't get returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.