pubsub

package
v0.0.0-...-baf35ca Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context, pool *pgxpool.Pool, log zerolog.Logger) error

Types

type Notifier

type Notifier interface {
	Listen(channel string, bufferSize int, warnOnDrop bool) Subscription
}

func Get

func Get() Notifier

type Subscription

type Subscription interface {
	NotificationC() <-chan string
	EstablishedC() <-chan struct{}
	Cancel()
}

Jump to

Keyboard shortcuts

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