pgsql

package
v0.0.0-...-cfbb22e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct{}

func (User) FetchByEmail

func (u User) FetchByEmail(db sqlx.DB, email string) (authapi.User, error)

func (User) FetchByExternalID

func (u User) FetchByExternalID(db sqlx.DB, externalID string) (authapi.User, error)

func (User) FetchProfile

func (u User) FetchProfile(db sqlx.DB, userID int, orgID int) (authapi.Profile, error)

func (User) FetchUserByID

func (u User) FetchUserByID(db sqlx.DB, id int) (authapi.User, error)

func (User) FetchUserByUUID

func (u User) FetchUserByUUID(db sqlx.DB, userUUID uuid.UUID, orgID int) (userFromDB *authapi.User, error error)

func (User) List

func (u User) List(db sqlx.DB, orgID int) ([]authapi.User, error)

func (User) ListRoles

func (u User) ListRoles(db sqlx.DB) ([]authapi.Role, error)

func (User) Update

func (u User) Update(db sqlx.DB, userToUpdate authapi.User) error

func (User) UpdateRole

func (u User) UpdateRole(db sqlx.DB, level int, profileID int) error

Jump to

Keyboard shortcuts

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