nats_connector

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost                = "0.0.0.0:32803"
	DefaultPingInterval        = 10
	DefaultMaxPingsOutstanding = 3
	DefaultMaxReconnects       = -1
	DefaultAccessKey           = ""
)

Variables

This section is empty.

Functions

func Module

func Module(scope string) fx.Option

Types

type NATSConnector

type NATSConnector struct {
	// contains filtered or unexported fields
}

func (*NATSConnector) GetConnection

func (c *NATSConnector) GetConnection() *nats.Conn

func (*NATSConnector) GetJetStreamContext

func (c *NATSConnector) GetJetStreamContext() nats.JetStreamContext

type Params

type Params struct {
	fx.In

	Lifecycle fx.Lifecycle
	Logger    *zap.Logger
}

Jump to

Keyboard shortcuts

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