pgxqueue

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package pgxqueue implements ListenerPool for PostgreSQL's LISTEN/NOTIFY.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgxListenerPool

type PgxListenerPool struct {
	queue.ListenerPool[string]

	Reconnect bool
	// contains filtered or unexported fields
}

A PgxListenerPool is listens with PostgreSQL's LISTEN/NOTIFY, using a *pgxpool.Pool. PgxListenerPool will reconnect when a connection is dropped, but note that Postgres only offers at-most-once delivery.

func NewPgxListenerPool

func NewPgxListenerPool(ctx context.Context, conn *pgxpool.Pool) *PgxListenerPool

NewPgxListenerPool creates a new PgxListenerPool.

Jump to

Keyboard shortcuts

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