package
0.1.15
Repository: https://github.com/paxman23l/golang-api-tools.git
Documentation: pkg.go.dev

# Functions

Connect connects to nats server and returns instance On shutdown, you'll need to call natsconnection.NC.Drain().
Request sends a message and expects a response back.
SubscribeToQueue subscribes on a NATS channel subj is the channel to subscribe on queueName, if specified joins the queue so each message is only received by one running container all containers subscribed to a specified subj receive the message unless in a queueName, then only one in each queueName receives the message nats.Msg has the subj in it, so we can do routing from there.

# Variables

NC is a connection to the nats Server.