sinks

package
v0.0.0-...-db3f45c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvelopeSender

type EnvelopeSender interface {
	SendTo(string, *events.Envelope)
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL