notifier

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxQueueBytes  int64
	URLWorkerCount uint
	ClientTimeout  time.Duration
	Backoff        backoff.Config
	StrictMode     bool
}

type Notifier

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

func New

func New(cfg *Config, store subscriptionRetriever, opts ...Option) *Notifier

func (*Notifier) Close

func (n *Notifier) Close() error

idempotent; notifyChan stays open

func (*Notifier) Name

func (n *Notifier) Name() string

func (*Notifier) Notify

func (n *Notifier) Notify(ctx context.Context) error

func (*Notifier) ProcessWALEvent

func (n *Notifier) ProcessWALEvent(ctx context.Context, walEvent *wal.Event) (err error)

safe for concurrent calls

type Option

type Option func(*Notifier)

func WithCheckpoint

func WithCheckpoint(c checkpointer.Checkpoint) Option

func WithLogger

func WithLogger(l loglib.Logger) Option

Jump to

Keyboard shortcuts

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