Documentation
¶
Index ¶
- func CreateUser(eid string, email string, username string) (*models.UserSchema, error)
- func CreateUserAPIKey(theUser *models.UserSchema) (models.UserAPIKey, error)
- func DeleteUserAPIKey(theUser *models.UserSchema, shortKey string) error
- func GetUser(id bson.ObjectID, externalId string, email string, username string) (*models.UserSchema, error)
- func UpdateUserProfilePicture(theUser *models.UserSchema, avatarUrl string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUserAPIKey ¶ added in v1.0.80
func CreateUserAPIKey(theUser *models.UserSchema) (models.UserAPIKey, error)
CreateUserAPIKey generates a new personal API key for the user. The full key is returned once here and never leaves the database again - the UI only ever shows the short key after this point.
func DeleteUserAPIKey ¶ added in v1.0.80
func DeleteUserAPIKey(theUser *models.UserSchema, shortKey string) error
func UpdateUserProfilePicture ¶
func UpdateUserProfilePicture(theUser *models.UserSchema, avatarUrl string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.