Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvelopeSender ¶
EnvelopeSender is the interface the MessageRouter uses to send envelopes read from the diode.
type MessageRouter ¶
type MessageRouter struct {
// contains filtered or unexported fields
}
MessageRouter consumes from a diode and sends envelopes to all recipients passed to the NewMessageRouter constructor.
func NewMessageRouter ¶
func NewMessageRouter(e ...EnvelopeSender) *MessageRouter
NewMessageRouter is the preferred means of constructing a MessageRouter.
func (*MessageRouter) Start ¶
func (r *MessageRouter) Start(incomingLog *diodes.ManyToOneEnvelope)
Start begins an infinite loop which reads from the diode and sends any received envelopes to the MessageRouter's senders.
Click to show internal directories.
Click to hide internal directories.