pgrepo

package
v0.0.0-...-af2c3ad Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGRepository

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

func MustInit

func MustInit(ctx context.Context, logger *slog.Logger, timeout time.Duration) *PGRepository

func New

func New(ctx context.Context, logger *slog.Logger, timeout time.Duration) (*PGRepository, error)

func (*PGRepository) Add

func (pg *PGRepository) Add(ctx context.Context, id int64) error

func (*PGRepository) Close

func (pg *PGRepository) Close()

func (*PGRepository) Del

func (pg *PGRepository) Del(ctx context.Context, id int64) error

func (*PGRepository) GetAll

func (pg *PGRepository) GetAll(ctx context.Context) ([]int64, error)

type Subscriber

type Subscriber struct {
	RecipientID int `db:"recipient_id"`
}

Jump to

Keyboard shortcuts

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