nats

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotReady = errors.New("nats server not ready after ready check timeout")

Functions

func New

func New(opts ...Option) (*nats.Conn, func(), error)

Types

type Option

type Option func(*config)

func WithClientName

func WithClientName(name string) Option

func WithCluster

func WithCluster(name string, routes []string) Option

func WithClusterListen

func WithClusterListen() Option

func WithConnectOpts

func WithConnectOpts(opts ...nats.Option) Option

func WithExternalURL

func WithExternalURL(url string) Option

func WithJetStream

func WithJetStream(enabled bool, storeDir ...string) Option

func WithReadyTimeout

func WithReadyTimeout(d time.Duration) Option

func WithServerOpts

func WithServerOpts(opts *server.Options) Option

Jump to

Keyboard shortcuts

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