Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsyncSub ¶
Sub subscribe to the connection based on the provided subject. nc can be nil. msgHandler is a callback function that processes messages delivered to asynchronous subscribers.
func DisplayMsg ¶
func DisplayMsg(msg *nats.Msg)
Types ¶
type NatsConn ¶
type NatsConn struct {
// contains filtered or unexported fields
}
NatsConn represents the nats connection.
Click to show internal directories.
Click to hide internal directories.