Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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] }
func (InstanceWithTokenRange) Cmp ¶
func (i InstanceWithTokenRange) Cmp(token uint32) v1.BoundsCheck
type InstancesWithTokenRange ¶
type InstancesWithTokenRange []InstanceWithTokenRange
func (InstancesWithTokenRange) Contains ¶
func (i InstancesWithTokenRange) Contains(token uint32) bool
type Range ¶
type Range[T constraints.Unsigned] struct { Min, Max T }
func NewRange ¶
func NewRange[T constraints.Unsigned](min, max T) Range[T]
func NewTokenRange ¶
func (Range[T]) Cmp ¶
func (r Range[T]) Cmp(t T) v1.BoundsCheck
Click to show internal directories.
Click to hide internal directories.