pgsql

package
v0.0.0-...-57b518e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 4 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) 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) (*authapi.User, 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