Help us shape the future of Go! Take the 2026 Go Developer Survey

user

package
v1.0.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(eid string, email string, username string) (*models.UserSchema, error)

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 GetUser

func GetUser(id bson.ObjectID, externalId string, email string, username string) (*models.UserSchema, error)

func UpdateUserProfilePicture

func UpdateUserProfilePicture(theUser *models.UserSchema, avatarUrl string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL