pg

package
v1.0.709 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBReconnectMaxDuration         = time.Minute * 5
	DBReconnectBackoffBaseDuration = time.Second
)

Defaults ...

Functions

func Listen

func Listen(ctx context.Context, channel string, pgNotify chan<- string)

Listen listens to postgres notifications. On failure, it'll keep retrying with backoff

func NewNotifyRouter

func NewNotifyRouter() *notifyRouter

Types

This section is empty.

Jump to

Keyboard shortcuts

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