persistent

package
v0.0.0-...-f90eb3b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo struct {
	*postgres.Postgres
}

func NewUserRepo

func NewUserRepo(pg *postgres.Postgres) *UserRepo

func (*UserRepo) Create

func (r *UserRepo) Create(ctx context.Context, u entity.User) error

func (*UserRepo) Delete

func (r *UserRepo) Delete(ctx context.Context, id uuid.UUID) error

func (*UserRepo) Update

func (r *UserRepo) Update(ctx context.Context, u entity.User) error

func (*UserRepo) UpdateLastLoginAttempt

func (r *UserRepo) UpdateLastLoginAttempt(ctx context.Context, id uuid.UUID) error

func (*UserRepo) UpdatePassword

func (r *UserRepo) UpdatePassword(ctx context.Context, email string, password []byte) error

func (*UserRepo) UserByEmail

func (r *UserRepo) UserByEmail(ctx context.Context, email string) (entity.User, error)

func (*UserRepo) UserByEmailIsExists

func (r *UserRepo) UserByEmailIsExists(ctx context.Context, email string) (*bool, error)

func (*UserRepo) UserById

func (r *UserRepo) UserById(ctx context.Context, id uuid.UUID) (entity.User, error)

Jump to

Keyboard shortcuts

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