connection

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NatsDefaultConnectionOptions

func NatsDefaultConnectionOptions(cfg *pubsub.Config, logger log.Logger) []nats.Option

Types

type NatsConnection

type NatsConnection struct {
	Connection *nats.Conn
	Logger     log.Logger
}

func NewNatsConnection

func NewNatsConnection(cfg *pubsub.Config, logger log.Logger, options ...nats.Option) (*NatsConnection, error)

func (NatsConnection) Close

func (c NatsConnection) Close() error

func (NatsConnection) Ping

func (c NatsConnection) Ping(_ context.Context) error

Jump to

Keyboard shortcuts

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