Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Uint32Range = Range[uint32]{Min: 0, Max: math.MaxUint32}
Uint64Range = Range[uint64]{Min: 0, Max: math.MaxUint64}
)
Functions ¶
func KeyspacesFromTokenRanges ¶
func KeyspacesFromTokenRanges(tokenRanges ring.TokenRanges) []v1.FingerprintBounds
TODO(owen-d): use https://github.com/grafana/loki/pull/11975 after merge
func TokenRangesForInstance ¶
func TokenRangesForInstance(id string, instances []ring.InstanceDesc) (ranges ring.TokenRanges, err error)
Types ¶
type InstanceWithTokenRange ¶
type InstanceWithTokenRange struct {
Instance ring.InstanceDesc
TokenRange Range[uint32]
}
type InstancesWithTokenRange ¶
type InstancesWithTokenRange []InstanceWithTokenRange
type Range ¶
type Range[T constraints.Unsigned] struct {
Min, Max T
}
func NewTokenRange ¶
func NewTokenRange(min, max uint32) Range[uint32]
Click to show internal directories.
Click to hide internal directories.