Documentation ¶
Index ¶
Constants ¶
View Source
const (
NatsUrlEnvVariableName = "NATS_URL"
)
Variables ¶
This section is empty.
Functions ¶
func PublishMessage ¶
PublishMessage publishes message to subject subject - subject where message be published msg - Message to publish
func StartSubscriptions ¶
func StartSubscriptions(consumer string)
StartSubscriptions - actually subscribe on NATS jet stream
func Subscribe ¶
func Subscribe(name string, handler message.Subscriber)
Subscribe - provide handler func to subject subject - subscribe to handler - handler func which would be invoked on incoming message
func Subscriber ¶
func Subscriber(topic string) message.Subscriber
Subscriber - returns subscriber which publishes message in NATS stream
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.