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.
Click to show internal directories.
Click to hide internal directories.