bpostgres

package
v0.0.0-...-a929fdb Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostgresURLToConnectionString

func PostgresURLToConnectionString(pgurl string) (string, error)

Types

type PostgresNotificationListener

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

func NewPostgresNotificationListener

func NewPostgresNotificationListener(postgresURI string, minReconn time.Duration, maxReconn time.Duration) *PostgresNotificationListener

func (*PostgresNotificationListener) Close

func (*PostgresNotificationListener) Listen

func (l *PostgresNotificationListener) Listen(channel string) error

func (*PostgresNotificationListener) Notify

func (l *PostgresNotificationListener) Notify() <-chan struct{}

func (*PostgresNotificationListener) RetrieveAll

func (l *PostgresNotificationListener) RetrieveAll() []string

type PostgresQueue

type PostgresQueue[T any] struct {
	// contains filtered or unexported fields
}

func NewPostgresQueue

func NewPostgresQueue[T any](postgresURI string, db *sqlx.DB, notificationChannel string, notificationQuery, catchupQuery string) *PostgresQueue[T]

func (*PostgresQueue[T]) Close

func (q *PostgresQueue[T]) Close() error

func (*PostgresQueue[T]) Notify

func (q *PostgresQueue[T]) Notify() <-chan struct{}

func (*PostgresQueue[T]) RetrieveAll

func (q *PostgresQueue[T]) RetrieveAll() []T

func (*PostgresQueue[T]) Start

func (q *PostgresQueue[T]) Start() error

Jump to

Keyboard shortcuts

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