users

package
v0.0.0-...-6eca15d Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo stores our dependencies

func NewRepo

func NewRepo(scope *gocb.Scope, controller controllers.Controller) *Repo

NewRepo creates our data store

func (*Repo) AddUser

func (r *Repo) AddUser(c echo.Context) error

func (*Repo) DeleteUserFromEmail

func (r *Repo) DeleteUserFromEmail(c echo.Context) error

func (*Repo) DeleteUserFromId

func (r *Repo) DeleteUserFromId(c echo.Context) error

func (*Repo) EditUser

func (r *Repo) EditUser(c echo.Context) error

func (*Repo) GetUserByEmail

func (r *Repo) GetUserByEmail(c echo.Context) error

GetUserByEmail finds a user by email @Summary Get a user by email @Description Get a basic user object by email. @ID get-user-email @Tags user-email @Produce json @Param email path string true "Email" @Success 200 {object} users.User @Router /ea231a602d352b2bcc5a2acca6022575/v1/internal/user/email/{email} [get]

func (*Repo) GetUserByEmailFull

func (r *Repo) GetUserByEmailFull(c echo.Context) error

GetUserByEmailFull finds a user by email returning all info @Summary Get a full user by email @Description Get a complete user object by email. @ID get-user-email-full @Tags user-email-full @Produce json @Param email path string true "Email" @Success 200 {object} users.User @Router /ea231a602d352b2bcc5a2acca6022575/v1/internal/user/email/{email}/full [get]

func (*Repo) GetUserById

func (r *Repo) GetUserById(c echo.Context) error

GetUserById finds a user by id @Summary Get a user by id @Description Get a basic user object by id. @ID get-user-id @Tags user-id @Produce json @Param id path uint64 true "Id" @Success 200 {object} users.User @Router /ea231a602d352b2bcc5a2acca6022575/v1/internal/user/id/{id} [get]

func (*Repo) GetUserByIdFull

func (r *Repo) GetUserByIdFull(c echo.Context) error

GetUserByIdFull finds a user by id returning all info @Summary Get a full user by id @Description Get a complete user object by id. @ID get-user-id-full @Tags user-id-full @Produce json @Param id path uint64 true "Id" @Success 200 {object} users.User @Router /ea231a602d352b2bcc5a2acca6022575/v1/internal/user/id/{id}/full [get]

func (*Repo) GetUserByToken

func (r *Repo) GetUserByToken(c echo.Context) error

GetUserByToken finds a user by their JWT token @Summary Get a user by token @Description Get a basic user object by JWT token generated by web-auth. @ID get-user-token @Tags user-token @Produce json @Success 200 {object} users.User @Router /ea231a602d352b2bcc5a2acca6022575/v1/internal/user [get]

func (*Repo) GetUserByTokenFull

func (r *Repo) GetUserByTokenFull(c echo.Context) error

GetUserByTokenFull finds a user by their JWT token returning all info @Summary Get a full user by token @Description Get a complete user object by JWT token generated by web-auth. @ID get-user-token-full @Tags user-token-full @Produce json @Success 200 {object} user.UserFull @Router /ea231a602d352b2bcc5a2acca6022575/v1/internal/user/full [get]

func (*Repo) ListAllUsers

func (r *Repo) ListAllUsers(c echo.Context) error

ListAllUsers handles listing all users

@Summary List all users @ID get-users-all @Tags users-all @Produce json @Success 200 {array} users.User @Router /ea231a602d352b2bcc5a2acca6022575/v1/internal/users [get]

func (*Repo) ListContactUsers

func (r *Repo) ListContactUsers(c echo.Context) error

ListContactUsers handles listing all contact users

@Summary List all contact users @ID get-users-contact-all @Tags users-all-contact @Produce json @Success 200 {array} users.User @Router /ea231a602d352b2bcc5a2acca6022575/v1/public/contacts [get]

func (*Repo) ListTeamManagersUsers

func (r *Repo) ListTeamManagersUsers(c echo.Context) error

Jump to

Keyboard shortcuts

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