Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitHeartbeat ¶
EmitHeartbeat publishes a heartbeat once. Call repeatedly on a ticker.
func HeartbeatLoop ¶
HeartbeatLoop emits heartbeats until ctx is done.
Types ¶
type NATSConn ¶
type NATSConn interface {
Publish(subject string, data []byte) error
QueueSubscribe(subj, queue string, cb nats.MsgHandler) (*nats.Subscription, error)
}
NATSConn is an interface that represents a NATS connection.
Click to show internal directories.
Click to hide internal directories.