Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct { NatsConn *edgefarm_network.NatsConnection Subjects []string }
Listener listens for events from the edgefarm network regarding to specific subjects
func NewListener ¶
func NewListener(natsConn *edgefarm_network.NatsConnection, subjects []string, handler func(*nats.Msg)) *Listener
Click to show internal directories.
Click to hide internal directories.