repository

package
v0.0.0-...-e92e447 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresDB

type PostgresDB interface {
	Close()
	GetConnection(ctx context.Context) (*pgxpool.Conn, error)
}

type Repository

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

func NewRepository

func NewRepository(pgDB PostgresDB) *Repository

func (*Repository) CreateUserV1

func (r *Repository) CreateUserV1(ctx context.Context, params model.CreateUserRequestV1) (*model.DBUser, error)

func (*Repository) DeactivateUserV1

func (r *Repository) DeactivateUserV1(ctx context.Context, req model.DeactivateUserRequestV1) error

func (*Repository) GetUserV1

func (r *Repository) GetUserV1(ctx context.Context, req model.GetUserRequestV1) (*model.DBUser, error)

Jump to

Keyboard shortcuts

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