natsutil

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//  StreamName is the name of StreamConfig for JetStream
	StreamName = "K-ORDERS"

	// MaxPending is the maximum outstanding async publishes that can be inflight at one time.
	MaxPending = 256
)

Variables

This section is empty.

Functions

func Connect

func Connect(clusterId string, clientId string, natsUrl string, logger *zap.SugaredLogger) (*stan.Conn, error)

Connect creates a new NATS-Streaming connection

func JetStreamConnect

func JetStreamConnect(jetStreamUrl string, logger *zap.SugaredLogger) (*nats.Conn, error)

JetStreamConnect creates a new NATS JetStream connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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