package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Mar 7, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type MSGQueue struct {
Host string
}
MSGQueue defines a messaging queue handled by the NATS server.
New creates and opens a NATS messaging queue connection.
Publish publishes a message to the specified subject.
Subscribe opens a subscriber to the specified subject. Incoming messages will be forwarded to the
handler. This will block until NATS's context ends.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.