nats

package
v0.0.0-...-5cf3e1d Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 2 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
)

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