backend

package
v0.0.0-...-d6b5dc2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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 PostgresBackend

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

func NewPostgresBackend

func NewPostgresBackend(ctx context.Context, config cli.BackendConfig) (*PostgresBackend, error)

func (*PostgresBackend) Ack

func (r *PostgresBackend) Ack(ctx context.Context, msg cli.Message) error

func (*PostgresBackend) AllMessages

func (r *PostgresBackend) AllMessages(ctx context.Context) ([]cli.Message, error)

func (*PostgresBackend) Requeue

func (r *PostgresBackend) Requeue(ctx context.Context, msg cli.Message) error

type PostgresMessage

type PostgresMessage struct {
	Offset   int    `db:"offset"`
	UUID     string `db:"uuid"`
	Payload  string `db:"payload"`
	Metadata string `db:"metadata"`
}

Jump to

Keyboard shortcuts

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