pub

package
v1.13.0-stable Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCircuitOpen = errors.New("circuit breaker is open")

Functions

This section is empty.

Types

type JetStreamOpts

type JetStreamOpts struct {
	Endpoints               []string
	PersistDuration         time.Duration
	DedupWindow             time.Duration
	StreamReplicas          int
	MaxRetries              int
	CircuitBreakerThreshold int
	CircuitBreakerTimeout   time.Duration
	Logg                    *slog.Logger
}

type Pub

type Pub interface {
	Send(context.Context, event.Event) error
	Close()
	Healthy() bool
}

func NewJetStreamPub

func NewJetStreamPub(o JetStreamOpts) (Pub, error)

Jump to

Keyboard shortcuts

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