Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NatsDeadLetterQueue is the default NATS queue for messages that cannot be delivered
NatsDeadLetterQueue = "dlq"
)
Variables ¶
This section is empty.
Functions ¶
func HandleSetup ¶
func HandleSetup()
HandleSetup takes care of initializing the logger and a few other components. It's done in the common package so that all agents making use of this function can do the exact same thing.
func NatsConnect ¶
NatsConnect handles connecting the a NATS server. It returns a NATS connection based on the environment variables: - NATSNAME: The name of the NATS connection - NATSURL: The URL of the NATS server to connect to
Types ¶
Click to show internal directories.
Click to hide internal directories.