Categorygithub.com/go-micro/plugins/v5/events/natsjs
modulepackage
1.0.0
Repository: https://github.com/go-micro/plugins.git
Documentation: pkg.go.dev

# README

NATS JetStream

This plugin uses NATS with JetStream to send and receive events.

# Functions

Address of the nats cluster.
Authenticate authenticates the connection with the given username and password.
ClientID sets the client id for the nats connection.
ClusterID sets the cluster id for the nats connection.
DisableDurableStreams will disable durable streams.
Logger sets the underlying logger.
Name allows to add a name to the natsjs connection.
NewStream returns an initialized nats stream or an error if the connection to the nats server could not be established.
NkeyConfig string to use when connecting to the cluster.
SynchronousPublish allows using a synchronous publishing instead of the default asynchronous.
TLSConfig to use when connecting to the cluster.

# Structs

Options which are used to configure the nats stream.

# Type aliases

Option is a function which configures options.