pglistener

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_RECONN = time.Minute
View Source
const MIN_RECONN = 10 * time.Second

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context, pgUrl string, channel string, reportErr pq.EventCallbackType) (notifications chan *pq.Notification, err error)

func RegisterNotifier

func RegisterNotifier(pgUrl string, setChannel string, deleteChannel string, table string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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