labelvolume

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MatchAny     = "{}"
	DefaultLimit = 100
)

Variables

This section is empty.

Functions

func MapToLabelVolumeResponse

func MapToLabelVolumeResponse(mergedVolumes map[string]map[string]uint64, limit int) *logproto.LabelVolumeResponse

func Merge

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL