store

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	DSN                  string
	MigrationsFolderPath string
	QueriesFolderPath    string
}

type PgStore

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

func (*PgStore) CreateAtReceipt

func (s *PgStore) CreateAtReceipt(ctx context.Context, statusCode uint, messageId string) error

func (*PgStore) CreateTgReceipt

func (s *PgStore) CreateTgReceipt(ctx context.Context, messageId int) error

func (*PgStore) SetAtDelivered

func (s *PgStore) SetAtDelivered(ctx context.Context, messageId string) error

type Store

type Store interface {
	CreateAtReceipt(context.Context, uint, string) error
	CreateTgReceipt(context.Context, int) error
	SetAtDelivered(context.Context, string) error
}

func NewPgStore

func NewPgStore(o Opts) (Store, error)

Jump to

Keyboard shortcuts

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