user

package
v0.0.0-...-96f1f9d Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(db *pgxpool.Pool) *Repo

func (*Repo) CreateUser

func (r *Repo) CreateUser(ctx context.Context, telegramID int64, name, surname string) (*domain.User, error)

func (*Repo) GetUserByTelegramID

func (r *Repo) GetUserByTelegramID(ctx context.Context, telegramID int64) (*domain.User, error)

Jump to

Keyboard shortcuts

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