Documentation ¶
Index ¶
Constants ¶
View Source
const ( MatchAny = "{}" DefaultLimit = 100 )
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
func Merge(responses []*logproto.LabelVolumeResponse, limit int32) *logproto.LabelVolumeResponse
Types ¶
type Accumulator ¶
type Accumulator struct {
// contains filtered or unexported fields
}
TODO(masslessparticle): Lock striping to reduce contention on this map
func NewAccumulator ¶
func NewAccumulator(limit int32) *Accumulator
func (*Accumulator) AddVolumes ¶
func (acc *Accumulator) AddVolumes(v map[string]map[string]uint64)
func (*Accumulator) Volumes ¶
func (acc *Accumulator) Volumes() *logproto.LabelVolumeResponse
Click to show internal directories.
Click to hide internal directories.