mq

package
v0.0.0-...-560f09a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JetstreamClient

type JetstreamClient struct {
	nats.JetStreamContext
	// contains filtered or unexported fields
}

JetstreamClient

Wrapper for nats.JetstreamContext to handle errors,
closure of the server connection and stream initialization.

func NewJetstreamClient

func NewJetstreamClient(cfg config.JetstreamConfig, logger logging.Logger) (*JetstreamClient, error)

NewJetstreamClient

Create a net NewJetstreamClient

func (*JetstreamClient) Close

func (c *JetstreamClient) Close()

Close

Closes the internal connection to the jetstream server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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