mocks

package
v0.0.0-...-dd18b94 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GaugeMock

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

func NewGaugeMock

func NewGaugeMock() *GaugeMock

func (*GaugeMock) Add

func (gm *GaugeMock) Add(value float64)

func (GaugeMock) Collect

func (GaugeMock) Collect(chan<- prometheus.Metric)

func (*GaugeMock) Dec

func (gm *GaugeMock) Dec()

func (GaugeMock) Desc

func (GaugeMock) Desc() *prometheus.Desc

func (GaugeMock) Describe

func (GaugeMock) Describe(chan<- *prometheus.Desc)

func (*GaugeMock) GetValue

func (gm *GaugeMock) GetValue() float64

func (*GaugeMock) Inc

func (gm *GaugeMock) Inc()

func (*GaugeMock) Observe

func (h *GaugeMock) Observe(value float64)

func (*GaugeMock) Set

func (gm *GaugeMock) Set(value float64)

func (*GaugeMock) SetToCurrentTime

func (gm *GaugeMock) SetToCurrentTime()

func (*GaugeMock) Sub

func (gm *GaugeMock) Sub(value float64)

func (GaugeMock) Write

type HistogramMock

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

func NewHistogramMock

func NewHistogramMock() *HistogramMock

func (HistogramMock) Collect

func (HistogramMock) Collect(chan<- prometheus.Metric)

func (HistogramMock) Desc

func (HistogramMock) Desc() *prometheus.Desc

func (HistogramMock) Describe

func (HistogramMock) Describe(chan<- *prometheus.Desc)

func (HistogramMock) Observe

func (h HistogramMock) Observe(value float64)

func (HistogramMock) Write

type HistorgramVecMock

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

func NewHistogramVecMock

func NewHistogramVecMock() *HistorgramVecMock

func (*HistorgramVecMock) Cleanup

func (m *HistorgramVecMock) Cleanup()

func (*HistorgramVecMock) Collect

func (m *HistorgramVecMock) Collect(chan<- prometheus.Metric)

func (*HistorgramVecMock) CurryWith

func (*HistorgramVecMock) Describe

func (m *HistorgramVecMock) Describe(chan<- *prometheus.Desc)

func (*HistorgramVecMock) GetCh

func (m *HistorgramVecMock) GetCh() chan float64

func (*HistorgramVecMock) GetMetricWith

func (*HistorgramVecMock) GetMetricWithLabelValues

func (m *HistorgramVecMock) GetMetricWithLabelValues(_ ...string) (prometheus.Observer, error)

func (*HistorgramVecMock) MustCurryWith

func (*HistorgramVecMock) With

func (*HistorgramVecMock) WithLabelValues

func (m *HistorgramVecMock) WithLabelValues(...string) prometheus.Observer

Jump to

Keyboard shortcuts

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