Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unknown Algorithm = -1 All = 0 JumpFNV1a = 1 FNV1a = 2 CarbonCH = 3 //NotImplementedYet )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm int
func (*Algorithm) FromString ¶
func (*Algorithm) MarshalJSON ¶
func (*Algorithm) UnmarshalJSON ¶
func (*Algorithm) UnmarshalYAML ¶
type AllDistribution ¶
type AllDistribution struct {
// contains filtered or unexported fields
}
func NewAllDistribution ¶
func NewAllDistribution(name string) *AllDistribution
func (*AllDistribution) MetricToShard ¶
func (d *AllDistribution) MetricToShard(metric *carbon.Metric) int
type Distribute ¶
type FNV1aDistribution ¶
type FNV1aDistribution struct {
// contains filtered or unexported fields
}
func NewFNV1aDistribution ¶
func NewFNV1aDistribution(name string, shards int) *FNV1aDistribution
func (*FNV1aDistribution) MetricToShard ¶
func (d *FNV1aDistribution) MetricToShard(metric *carbon.Metric) int
type JumpFNV1aDistribution ¶
type JumpFNV1aDistribution struct {
// contains filtered or unexported fields
}
func NewJumpFNV1aDistribution ¶
func NewJumpFNV1aDistribution(name string, shards int) *JumpFNV1aDistribution
func (*JumpFNV1aDistribution) MetricToShard ¶
func (d *JumpFNV1aDistribution) MetricToShard(metric *carbon.Metric) int
Click to show internal directories.
Click to hide internal directories.