Versions in this module Expand all Collapse all v0 v0.0.1 Dec 29, 2017 Changes in this version + type Config struct + MaxRuleRecursion int + Rules []Rule + type DummyRouter struct + func NewDummyRouter() *DummyRouter + func (r *DummyRouter) GetData() map[string]*carbon.Metric + func (r *DummyRouter) Reload(senders []transport.Sender, config Config) bool + func (r *DummyRouter) Route(payload carbon.Payload) + type Metrics struct + InfiniteRecursions uint64 + MetricsRewritten uint64 + MetricsRouted uint64 + RulesCacheHit uint64 + RulesCacheMiss uint64 + type RelayRouter struct + Metrics Metrics + func NewRelayRouter(senders []transport.Sender, config Config) *RelayRouter + func (r *RelayRouter) Reload(senders []transport.Sender, config Config) bool + func (r *RelayRouter) Route(payload carbon.Payload) + type Router interface + Reload func(senders []transport.Sender, config Config) bool + Route func(payload carbon.Payload) + type Rule struct + Blackhole bool + Destinations []string + LastIfMatched bool + LogOnReceive bool + Regex string + RewriteTo string + SaveOriginalOnRewrite bool + StartsWith string