user

package
v0.0.0-...-d081b09 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: GPL-3.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func New

func New(db *pgxpool.Pool) User

New returns a new User storage

func (User) Create

func (u User) Create(m *model.User) error

Create creates a model.User

func (User) GetAll

func (u User) GetAll() (model.Users, error)

GetAll gets all model.Users with Fields

func (User) GetByEmail

func (u User) GetByEmail(email string) (model.User, error)

func (User) GetByID

func (u User) GetByID(ID uuid.UUID) (model.User, error)

Jump to

Keyboard shortcuts

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