Versions in this module Expand all Collapse all v0 v0.0.1 Dec 29, 2017 Changes in this version + const All + const CarbonCH + const FNV1a + const JumpFNV1a + const Unknown + type Algorithm int + func (h *Algorithm) FromString(s string) error + func (h *Algorithm) MarshalJSON() ([]byte, error) + func (h *Algorithm) UnmarshalJSON(data []byte) error + func (h *Algorithm) UnmarshalYAML(unmarshal func(interface{}) error) error + type AllDistribution struct + func NewAllDistribution(name string) *AllDistribution + func (d *AllDistribution) MetricToShard(metric *carbon.Metric) int + type Distribute interface + MetricToShard func(metric *carbon.Metric) int + type FNV1aDistribution struct + func NewFNV1aDistribution(name string, shards int) *FNV1aDistribution + func (d *FNV1aDistribution) MetricToShard(metric *carbon.Metric) int + type JumpFNV1aDistribution struct + func NewJumpFNV1aDistribution(name string, shards int) *JumpFNV1aDistribution + func (d *JumpFNV1aDistribution) MetricToShard(metric *carbon.Metric) int