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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCompAlreadyExists  = errors.New("Organization name already exists")
	ErrEmailAlreadyExists = errors.New("Email already exists")
)

Custom errors

Functions

This section is empty.

Types

type Profile

type Profile struct{}

func (Profile) Create

func (p Profile) Create(db sqlx.DB, profile authapi.Profile) error

Create creates a new user on database

func (Profile) FetchProfile

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

func (Profile) FetchProfileByExternalID

func (p Profile) FetchProfileByExternalID(db sqlx.DB, externalID string) (authapi.Profile, error)

Jump to

Keyboard shortcuts

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