Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type Counter
- type CounterMockRecorder
- type Gauge
- type GaugeMockRecorder
- type LabeledCounter
- type LabeledCounterMockRecorder
- type LabeledGauge
- type LabeledGaugeMockRecorder
- type LabeledTimer
- type LabeledTimerMockRecorder
- type Registry
- func (r Registry) NewCounter(name, help string) metrics.Counter
- func (r Registry) NewGauge(name, help string) metrics.Gauge
- func (r Registry) NewLabeledCounter(name, help string, labels ...string) metrics.LabeledCounter
- func (r Registry) NewLabeledGauge(name, help string, labels ...string) metrics.LabeledGauge
- func (r Registry) NewLabeledTimer(name, help string, labels ...string) metrics.LabeledTimer
- func (r Registry) NewTimer(name, help string) metrics.Timer
- type Timer
- type TimerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a mock of Counter interface.
func NewCounter ¶
func NewCounter(ctrl *gomock.Controller) *Counter
NewCounter creates a new mock instance.
func (*Counter) EXPECT ¶
func (m *Counter) EXPECT() *CounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type CounterMockRecorder ¶
type CounterMockRecorder struct {
// contains filtered or unexported fields
}
CounterMockRecorder is the mock recorder for Counter.
func (*CounterMockRecorder) Inc ¶
func (mr *CounterMockRecorder) Inc(arg0 ...interface{}) *gomock.Call
Inc indicates an expected call of Inc.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is a mock of Gauge interface.
func (*Gauge) EXPECT ¶
func (m *Gauge) EXPECT() *GaugeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type GaugeMockRecorder ¶
type GaugeMockRecorder struct {
// contains filtered or unexported fields
}
GaugeMockRecorder is the mock recorder for Gauge.
func (*GaugeMockRecorder) Dec ¶
func (mr *GaugeMockRecorder) Dec(arg0 ...interface{}) *gomock.Call
Dec indicates an expected call of Dec.
func (*GaugeMockRecorder) Inc ¶
func (mr *GaugeMockRecorder) Inc(arg0 ...interface{}) *gomock.Call
Inc indicates an expected call of Inc.
func (*GaugeMockRecorder) Set ¶
func (mr *GaugeMockRecorder) Set(arg0 interface{}) *gomock.Call
Set indicates an expected call of Set.
type LabeledCounter ¶
type LabeledCounter struct {
// contains filtered or unexported fields
}
LabeledCounter is a mock of LabeledCounter interface.
func NewLabeledCounter ¶
func NewLabeledCounter(ctrl *gomock.Controller) *LabeledCounter
NewLabeledCounter creates a new mock instance.
func (*LabeledCounter) EXPECT ¶
func (m *LabeledCounter) EXPECT() *LabeledCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*LabeledCounter) WithValues ¶
func (m *LabeledCounter) WithValues(arg0 ...string) metrics.Counter
WithValues mocks base method.
type LabeledCounterMockRecorder ¶
type LabeledCounterMockRecorder struct {
// contains filtered or unexported fields
}
LabeledCounterMockRecorder is the mock recorder for LabeledCounter.
func (*LabeledCounterMockRecorder) WithValues ¶
func (mr *LabeledCounterMockRecorder) WithValues(arg0 ...interface{}) *gomock.Call
WithValues indicates an expected call of WithValues.
type LabeledGauge ¶
type LabeledGauge struct {
// contains filtered or unexported fields
}
LabeledGauge is a mock of LabeledGauge interface.
func NewLabeledGauge ¶
func NewLabeledGauge(ctrl *gomock.Controller) *LabeledGauge
NewLabeledGauge creates a new mock instance.
func (*LabeledGauge) EXPECT ¶
func (m *LabeledGauge) EXPECT() *LabeledGaugeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*LabeledGauge) WithValues ¶
func (m *LabeledGauge) WithValues(arg0 ...string) metrics.Gauge
WithValues mocks base method.
type LabeledGaugeMockRecorder ¶
type LabeledGaugeMockRecorder struct {
// contains filtered or unexported fields
}
LabeledGaugeMockRecorder is the mock recorder for LabeledGauge.
func (*LabeledGaugeMockRecorder) WithValues ¶
func (mr *LabeledGaugeMockRecorder) WithValues(arg0 ...interface{}) *gomock.Call
WithValues indicates an expected call of WithValues.
type LabeledTimer ¶
type LabeledTimer struct {
// contains filtered or unexported fields
}
LabeledTimer is a mock of LabeledTimer interface.
func NewLabeledTimer ¶
func NewLabeledTimer(ctrl *gomock.Controller) *LabeledTimer
NewLabeledTimer creates a new mock instance.
func (*LabeledTimer) EXPECT ¶
func (m *LabeledTimer) EXPECT() *LabeledTimerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*LabeledTimer) WithValues ¶
func (m *LabeledTimer) WithValues(arg0 ...string) metrics.Timer
WithValues mocks base method.
type LabeledTimerMockRecorder ¶
type LabeledTimerMockRecorder struct {
// contains filtered or unexported fields
}
LabeledTimerMockRecorder is the mock recorder for LabeledTimer.
func (*LabeledTimerMockRecorder) WithValues ¶
func (mr *LabeledTimerMockRecorder) WithValues(arg0 ...interface{}) *gomock.Call
WithValues indicates an expected call of WithValues.
type Registry ¶
type Registry struct { Ctrl *gomock.Controller SetupCounter func(source *Counter) SetupGauge func(source *Gauge) SetupTimer func(source *Timer) SetupLabeledCounter func(source *LabeledCounter) SetupLabeledGauge func(source *LabeledGauge) SetupLabeledTimer func(source *LabeledTimer) }
Registry is a metrics registry that can build mocked metrics.
func (Registry) NewLabeledCounter ¶
func (r Registry) NewLabeledCounter(name, help string, labels ...string) metrics.LabeledCounter
func (Registry) NewLabeledGauge ¶
func (r Registry) NewLabeledGauge(name, help string, labels ...string) metrics.LabeledGauge
func (Registry) NewLabeledTimer ¶
func (r Registry) NewLabeledTimer(name, help string, labels ...string) metrics.LabeledTimer
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer is a mock of Timer interface.
func (*Timer) EXPECT ¶
func (m *Timer) EXPECT() *TimerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Timer) UpdateSince ¶
UpdateSince mocks base method.
type TimerMockRecorder ¶
type TimerMockRecorder struct {
// contains filtered or unexported fields
}
TimerMockRecorder is the mock recorder for Timer.
func (*TimerMockRecorder) Update ¶
func (mr *TimerMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*TimerMockRecorder) UpdateSince ¶
func (mr *TimerMockRecorder) UpdateSince(arg0 interface{}) *gomock.Call
UpdateSince indicates an expected call of UpdateSince.