stream

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2015 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcast

type Broadcast struct {
	core.StreamBase
}

Broadcast stream plugin Configuration example

  • "stream.Broadcast": Enable: true Stream: "data" Formatter: "format.Envelope" Filter: "filter.All"

Messages will be sent to all producers attached to this stream.

Stream defines the streams this stream plugin binds to (i.e. the streams affected by this config).

Formatter defines a formatter that is applied to all messages sent to this stream. This can be used to bring different streams to the same format required by a producer formatter. By default this is set to format.Forward.

Filter defines a filter function that removes or allows certain messages to pass through this stream. By default this is set to filter.All.

type Random

type Random struct {
	core.StreamBase
}

Random stream plugin Configuration example

  • "stream.Random": Enable: true Stream: "data" Formatter: "format.Envelope" Filter: "filter.All"

Messages will be sent to one of the producers attached to this stream. The producer used is defined randomly.

This stream defines the same fields as stream.Broadcast.

func (*Random) Configure

func (stream *Random) Configure(conf core.PluginConfig) error

Configure initializes this distributor with values from a plugin config.

type RoundRobin

type RoundRobin struct {
	core.StreamBase
	// contains filtered or unexported fields
}

RoundRobin stream plugin Configuration example

  • "stream.RoundRobin": Enable: true Stream: "data" Formatter: "format.Envelope" Filter: "filter.All"

Messages will be sent to one of the producers attached to this stream. Producers will be switched one-by-one.

This stream defines the same fields as stream.Broadcast.

func (*RoundRobin) Configure

func (stream *RoundRobin) Configure(conf core.PluginConfig) error

Configure initializes this distributor with values from a plugin config.

Jump to

Keyboard shortcuts

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