pgrepo

package
v0.0.0-...-a2ea4c1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgRepo

type PgRepo struct {
	Pool *pgxpool.Pool
}

func New

func New(ctx context.Context, cfg config.RepoCfg, logger zerolog.Logger) (*PgRepo, error)

func (PgRepo) AddMessage

func (pg PgRepo) AddMessage(ctx context.Context, userID int, msg string) error

func (PgRepo) AddUser

func (pg PgRepo) AddUser(ctx context.Context, UserName string) (int, error)

Jump to

Keyboard shortcuts

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