store

package
v0.0.0-...-2a4d152 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricID

type MetricID uint32

type MetricStore

type MetricStore struct {
	// contains filtered or unexported fields
}

func NewMetricStore

func NewMetricStore(numSamples int) *MetricStore

func (*MetricStore) Bind

func (st *MetricStore) Bind(key metric.MetricKey, outChan chan float64, n int) *Stream

func (*MetricStore) GetHist

func (st *MetricStore) GetHist(mk metric.MetricKey) *metric.Histogram

func (*MetricStore) Samples

func (st *MetricStore) Samples(key metric.MetricKey, onSample func(float64)) int

func (*MetricStore) Update

func (st *MetricStore) Update(m *metric.RawMetric)

func (*MetricStore) UpdateHistograms

func (st *MetricStore) UpdateHistograms(hs map[string]metric.Histogram)

type RingBuffer

type RingBuffer struct {
	// contains filtered or unexported fields
}

func (*RingBuffer) Add

func (buf *RingBuffer) Add(v float64)

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func (*Stream) Close

func (s *Stream) Close()

Jump to

Keyboard shortcuts

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