Documentation ¶
Index ¶
- type GaugeMock
- func (gm *GaugeMock) Add(value float64)
- func (GaugeMock) Collect(chan<- prometheus.Metric)
- func (gm *GaugeMock) Dec()
- func (GaugeMock) Desc() *prometheus.Desc
- func (GaugeMock) Describe(chan<- *prometheus.Desc)
- func (gm *GaugeMock) GetValue() float64
- func (gm *GaugeMock) Inc()
- func (h *GaugeMock) Observe(value float64)
- func (gm *GaugeMock) Set(value float64)
- func (gm *GaugeMock) SetToCurrentTime()
- func (gm *GaugeMock) Sub(value float64)
- func (GaugeMock) Write(*io_prometheus_client.Metric) error
- type HistogramMock
- type HistorgramVecMock
- func (m *HistorgramVecMock) Cleanup()
- func (m *HistorgramVecMock) Collect(chan<- prometheus.Metric)
- func (m *HistorgramVecMock) CurryWith(prometheus.Labels) (prometheus.ObserverVec, error)
- func (m *HistorgramVecMock) Describe(chan<- *prometheus.Desc)
- func (m *HistorgramVecMock) GetCh() chan float64
- func (m *HistorgramVecMock) GetMetricWith(prometheus.Labels) (prometheus.Observer, error)
- func (m *HistorgramVecMock) GetMetricWithLabelValues(_ ...string) (prometheus.Observer, error)
- func (m *HistorgramVecMock) MustCurryWith(prometheus.Labels) prometheus.ObserverVec
- func (m *HistorgramVecMock) With(prometheus.Labels) prometheus.Observer
- func (m *HistorgramVecMock) WithLabelValues(...string) prometheus.Observer
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) Collect ¶
func (GaugeMock) Collect(chan<- prometheus.Metric)
func (GaugeMock) Desc ¶
func (GaugeMock) Desc() *prometheus.Desc
func (GaugeMock) Describe ¶
func (GaugeMock) Describe(chan<- *prometheus.Desc)
func (*GaugeMock) SetToCurrentTime ¶
func (gm *GaugeMock) SetToCurrentTime()
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 ¶
func (HistogramMock) Write(*io_prometheus_client.Metric) error
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 (m *HistorgramVecMock) CurryWith(prometheus.Labels) (prometheus.ObserverVec, error)
func (*HistorgramVecMock) Describe ¶
func (m *HistorgramVecMock) Describe(chan<- *prometheus.Desc)
func (*HistorgramVecMock) GetCh ¶
func (m *HistorgramVecMock) GetCh() chan float64
func (*HistorgramVecMock) GetMetricWith ¶
func (m *HistorgramVecMock) GetMetricWith(prometheus.Labels) (prometheus.Observer, error)
func (*HistorgramVecMock) GetMetricWithLabelValues ¶
func (m *HistorgramVecMock) GetMetricWithLabelValues(_ ...string) (prometheus.Observer, error)
func (*HistorgramVecMock) MustCurryWith ¶
func (m *HistorgramVecMock) MustCurryWith(prometheus.Labels) prometheus.ObserverVec
func (*HistorgramVecMock) With ¶
func (m *HistorgramVecMock) With(prometheus.Labels) prometheus.Observer
func (*HistorgramVecMock) WithLabelValues ¶
func (m *HistorgramVecMock) WithLabelValues(...string) prometheus.Observer
Click to show internal directories.
Click to hide internal directories.