Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Demultiplexer ¶
type Demultiplexer struct {
// contains filtered or unexported fields
}
Demultiplexer is a sink that forwards points it sees to multiple sinks
func New ¶
func New(sendTo []dpsink.Sink) *Demultiplexer
New creates a new forwarder that sends datapoints to multiple recievers
func (*Demultiplexer) AddDatapoints ¶
func (streamer *Demultiplexer) AddDatapoints(ctx context.Context, points []*datapoint.Datapoint) error
AddDatapoints forwards all points to each sendTo sink. Returns the error message of the last sink to have an error.
Click to show internal directories.
Click to hide internal directories.