repositories

package
v0.0.0-...-855d15e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRepositoryNonUnique   = errors.New("column value must be unique")
	ErrRepositoryNoRows      = errors.New("no rows found")
	ErrRepositoryTooManyRows = errors.New("too many rows found")
)

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct{}

func (*UserRepository) Create

func (u *UserRepository) Create(user *models.User) error

func (*UserRepository) GetByEmail

func (u *UserRepository) GetByEmail(email string) (*models.User, error)

func (*UserRepository) GetById

func (ur *UserRepository) GetById(id uuid.UUID) (*models.User, error)

func (*UserRepository) UpdatePassword

func (ur *UserRepository) UpdatePassword(id uuid.UUID, passwordHash string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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