Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config contains configuration for the dispatcher
func New ¶
func New(pool pool.Pool, collect collector.Collector, url, redisChannel string, buffer int, replication float64) *Config
New returns a configured dispatcher
func (*Config) Replications ¶
Replications returns the number of replication that should be pushed to the pool
func (*Config) Start ¶
func (c *Config) Start() Dispatcher
Start receives from the configured redis channel, converts the message into a http.Request and pushes it to the pool for replication the configured number of times
type Dispatcher ¶
type Dispatcher interface { Start() Dispatcher Stop() }
The Dispatcher basically ETLs from a datasource (e.g. a redis channel) to a processor (i.e. a pool.Pool) a configurable number of times
Click to show internal directories.
Click to hide internal directories.