package
Version:
v0.0.0-...-c63310e
Opens a new window with list of versions in this module.
Published: Nov 9, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Client handles the subscriptions to NATS subjects
NewClient constructor creates the client with the specified config
Close closes the connection to NATS server
Subscribe method subscribes to the NATS subject
type Config struct {
NatsURL string
NatsOpts nats.Option
}
Config contains the configuration need to connect to NATS server
Option is a self-refrential function for configuration
Source Files
¶
Click to show internal directories.
Click to hide internal directories.