Skip to main content

Module nats

Module nats 

Source

Structs§

Auth
ConnectOptions
Options for connecting to a NATS server.
ConsumerConfig
NatsHeader
A header attached to every message published by nats_output.
NatsInputConfig
NatsOutputConfig
Configuration for writing data to a NATS subject with nats_output.
Tls
TLS options for connecting to a NATS server.
UserAndPassword

Enums§

Credentials
DeliverPolicy
NatsMessageId
How nats_output chooses the Nats-Msg-Id header of each message.
ReplayPolicy

Constants§

DEFAULT_CONNECTION_TIMEOUT
Default time to wait for the initial connection to the NATS server.
DEFAULT_INACTIVITY_TIMEOUT
Default time to wait for the next message before running a health check.
DEFAULT_MAX_MESSAGE_SIZE_BYTES
Default max message payload when the bound stream’s max_message_size is unset (the server reports -1) and no override is configured: the nats-server default.
DEFAULT_PUBLISH_TIMEOUT
Default time to wait for the server’s publish acknowledgment.
DEFAULT_REQUEST_TIMEOUT
Default time to wait for a response to a NATS request.
DEFAULT_RETRY_INTERVAL
Default delay before the first automatic reconnect attempt.
DEFAULT_RETRY_MAX_INTERVAL
Default upper bound on the delay between reconnect attempts.