nats

package
v0.0.0-...-78446cc Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WithRetryOnFailedConnect = nats.RetryOnFailedConnect
	WithMaxReconnects        = nats.MaxReconnects
	WithReconnectWait        = nats.ReconnectWait
	WithName                 = nats.Name
)
View Source
var ErrNATSConnectionNotConnected = errors.New("NATS connection not connected")

Functions

func Connect

func Connect(url string, opts ...Opt) (*nats.Conn, error)

Connect returns a NATS connection that is ready for use, or an error if connection to the NATS server failed. It uses the nats.Connect function which is thread-safe.

Types

type Opt

type Opt = nats.Option

Jump to

Keyboard shortcuts

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