nats

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidNamespace = fmt.Errorf("key does not have valid namespace: e.g. 'usercreated' instead of 'user.created'")
View Source
var ErrNotConnected = fmt.Errorf("not connected")

Functions

func Broker

func Broker(options ...Option) eventsource.Broker

Types

type Option

type Option func(c *client)

func WithAddress

func WithAddress(address string) Option

func WithMaxAge

func WithMaxAge(ttl time.Duration) Option

func WithMaxBytes

func WithMaxBytes(maxBytes int64) Option

func WithMaxMsgs

func WithMaxMsgs(maxMsgs int64) Option

Jump to

Keyboard shortcuts

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