repo

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repositories

type Repositories struct {
	User
}

func NewRepositories

func NewRepositories(pg *postgres.Postgres) *Repositories

type User

type User interface {
	Create(ctx context.Context, u entity.User) error
	Delete(ctx context.Context, id uuid.UUID) error
	UpdatePassword(ctx context.Context, email string, password []byte) error
	Update(ctx context.Context, u entity.User) error
	UpdateLastLoginAttempt(ctx context.Context, id uuid.UUID) error
	UserByEmail(ctx context.Context, email string) (entity.User, error)
	UserByEmailIsExists(ctx context.Context, email string) (*bool, error)
	UserById(ctx context.Context, id uuid.UUID) (entity.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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