outboxrepo

package
v0.0.0-...-4be293a Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOutboxEventParams

type CreateOutboxEventParams struct {
	Topic   string
	Key     string
	Payload []byte
	Headers []byte
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type FoundationOutboxEvent

type FoundationOutboxEvent struct {
	ID        int64
	Topic     string
	Key       string
	Payload   []byte
	Headers   []byte
	CreatedAt pgtype.Timestamptz
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateOutboxEvent

func (q *Queries) CreateOutboxEvent(ctx context.Context, arg CreateOutboxEventParams) error

func (*Queries) DeleteOutboxEvents

func (q *Queries) DeleteOutboxEvents(ctx context.Context, id int64) error

func (*Queries) ListOutboxEvents

func (q *Queries) ListOutboxEvents(ctx context.Context, limit int32) ([]FoundationOutboxEvent, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

Jump to

Keyboard shortcuts

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