Versions in this module Expand all Collapse all v0 v0.8.0 Oct 18, 2026 Changes in this version + var ErrInvalidChannel = errors.New("notify: invalid channel name") + var ErrRunning = errors.New("notify: listener already running") + func CheckChannel(channel string) error + type Config struct + Buffer int + Logger *slog.Logger + type Listener struct + func NewListener(pool *pgxpool.Pool, cfg Config, opts ...Option) *Listener + func (l *Listener) Run(ctx context.Context) error + func (l *Listener) Subscribe(channel string) (*Subscription, error) + type Notification struct + Gap bool + Payload string + type Option func(*telemetry.Providers) + func WithMeterProvider(mp metric.MeterProvider) Option + type Subscription struct + func (s *Subscription) C() <-chan Notification + func (s *Subscription) Close()