package
Version:
v0.0.0-...-0871eb3
Opens a new window with list of versions in this module.
Published: Feb 4, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Connection(host, user, pass string, port int) (*nats.Conn, error)
Connection is to connect NATS server
Publish is not used because of just example.
func Unsubscribe(sub *nats.Subscription)
Unsubscribe is to unsubscribe to subject
type ChReceive struct {
Conn *nats.Conn
ChWait chan bool
ChCMsg chan *nats.Msg
Error error
}
ChReceive is struct of channel for receiver
Subscribe is to subscribe to subject
Source Files
¶
Click to show internal directories.
Click to hide internal directories.