logic

package
v0.0.0-...-8de1103 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartialIdent

type PartialIdent struct {
	// contains filtered or unexported fields
}

type UserRepo

type UserRepo struct {
	// contains filtered or unexported fields
}

func NewUserRepo

func NewUserRepo(pg *pgxpool.Pool) *UserRepo

func (*UserRepo) Delete

func (r *UserRepo) Delete(ctx context.Context, userId int) error

func (*UserRepo) Edit

func (r *UserRepo) Edit(ctx context.Context, user entity.User) (entity.User, error)

func (*UserRepo) Insert

func (r *UserRepo) Insert(ctx context.Context, user entity.User) (entity.User, error)

func (*UserRepo) Select

func (r *UserRepo) Select(ctx context.Context, ident PartialIdent) (entity.User, error)

Jump to

Keyboard shortcuts

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