Documentation ¶
Index ¶
- type GoMetrics
- func (_m *GoMetrics) AddSampleWithLabels(key []string, val float32, labels []metrics.Label)
- func (_m *GoMetrics) EXPECT() *GoMetrics_Expecter
- func (_m *GoMetrics) IncrCounterWithLabels(key []string, val float32, labels []metrics.Label)
- func (_m *GoMetrics) SetGaugeWithLabels(key []string, val float32, labels []metrics.Label)
- func (_m *GoMetrics) Shutdown()
- type GoMetrics_AddSampleWithLabels_Call
- func (_c *GoMetrics_AddSampleWithLabels_Call) Return() *GoMetrics_AddSampleWithLabels_Call
- func (_c *GoMetrics_AddSampleWithLabels_Call) Run(run func(key []string, val float32, labels []metrics.Label)) *GoMetrics_AddSampleWithLabels_Call
- func (_c *GoMetrics_AddSampleWithLabels_Call) RunAndReturn(run func([]string, float32, []metrics.Label)) *GoMetrics_AddSampleWithLabels_Call
- type GoMetrics_Expecter
- func (_e *GoMetrics_Expecter) AddSampleWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_AddSampleWithLabels_Call
- func (_e *GoMetrics_Expecter) IncrCounterWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_IncrCounterWithLabels_Call
- func (_e *GoMetrics_Expecter) SetGaugeWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_SetGaugeWithLabels_Call
- func (_e *GoMetrics_Expecter) Shutdown() *GoMetrics_Shutdown_Call
- type GoMetrics_IncrCounterWithLabels_Call
- func (_c *GoMetrics_IncrCounterWithLabels_Call) Return() *GoMetrics_IncrCounterWithLabels_Call
- func (_c *GoMetrics_IncrCounterWithLabels_Call) Run(run func(key []string, val float32, labels []metrics.Label)) *GoMetrics_IncrCounterWithLabels_Call
- func (_c *GoMetrics_IncrCounterWithLabels_Call) RunAndReturn(run func([]string, float32, []metrics.Label)) *GoMetrics_IncrCounterWithLabels_Call
- type GoMetrics_SetGaugeWithLabels_Call
- func (_c *GoMetrics_SetGaugeWithLabels_Call) Return() *GoMetrics_SetGaugeWithLabels_Call
- func (_c *GoMetrics_SetGaugeWithLabels_Call) Run(run func(key []string, val float32, labels []metrics.Label)) *GoMetrics_SetGaugeWithLabels_Call
- func (_c *GoMetrics_SetGaugeWithLabels_Call) RunAndReturn(run func([]string, float32, []metrics.Label)) *GoMetrics_SetGaugeWithLabels_Call
- type GoMetrics_Shutdown_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoMetrics ¶
GoMetrics is an autogenerated mock type for the goMetrics type
func NewGoMetrics ¶
func NewGoMetrics(t mockConstructorTestingTNewGoMetrics) *GoMetrics
NewGoMetrics creates a new instance of GoMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GoMetrics) AddSampleWithLabels ¶
AddSampleWithLabels provides a mock function with given fields: key, val, labels
func (*GoMetrics) EXPECT ¶
func (_m *GoMetrics) EXPECT() *GoMetrics_Expecter
func (*GoMetrics) IncrCounterWithLabels ¶
IncrCounterWithLabels provides a mock function with given fields: key, val, labels
func (*GoMetrics) SetGaugeWithLabels ¶
SetGaugeWithLabels provides a mock function with given fields: key, val, labels
type GoMetrics_AddSampleWithLabels_Call ¶
GoMetrics_AddSampleWithLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddSampleWithLabels'
func (*GoMetrics_AddSampleWithLabels_Call) Return ¶
func (_c *GoMetrics_AddSampleWithLabels_Call) Return() *GoMetrics_AddSampleWithLabels_Call
func (*GoMetrics_AddSampleWithLabels_Call) Run ¶
func (_c *GoMetrics_AddSampleWithLabels_Call) Run(run func(key []string, val float32, labels []metrics.Label)) *GoMetrics_AddSampleWithLabels_Call
func (*GoMetrics_AddSampleWithLabels_Call) RunAndReturn ¶
func (_c *GoMetrics_AddSampleWithLabels_Call) RunAndReturn(run func([]string, float32, []metrics.Label)) *GoMetrics_AddSampleWithLabels_Call
type GoMetrics_Expecter ¶
type GoMetrics_Expecter struct {
// contains filtered or unexported fields
}
func (*GoMetrics_Expecter) AddSampleWithLabels ¶
func (_e *GoMetrics_Expecter) AddSampleWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_AddSampleWithLabels_Call
AddSampleWithLabels is a helper method to define mock.On call
- key []string
- val float32
- labels []metrics.Label
func (*GoMetrics_Expecter) IncrCounterWithLabels ¶
func (_e *GoMetrics_Expecter) IncrCounterWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_IncrCounterWithLabels_Call
IncrCounterWithLabels is a helper method to define mock.On call
- key []string
- val float32
- labels []metrics.Label
func (*GoMetrics_Expecter) SetGaugeWithLabels ¶
func (_e *GoMetrics_Expecter) SetGaugeWithLabels(key interface{}, val interface{}, labels interface{}) *GoMetrics_SetGaugeWithLabels_Call
SetGaugeWithLabels is a helper method to define mock.On call
- key []string
- val float32
- labels []metrics.Label
func (*GoMetrics_Expecter) Shutdown ¶
func (_e *GoMetrics_Expecter) Shutdown() *GoMetrics_Shutdown_Call
Shutdown is a helper method to define mock.On call
type GoMetrics_IncrCounterWithLabels_Call ¶
GoMetrics_IncrCounterWithLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrCounterWithLabels'
func (*GoMetrics_IncrCounterWithLabels_Call) Return ¶
func (_c *GoMetrics_IncrCounterWithLabels_Call) Return() *GoMetrics_IncrCounterWithLabels_Call
func (*GoMetrics_IncrCounterWithLabels_Call) Run ¶
func (_c *GoMetrics_IncrCounterWithLabels_Call) Run(run func(key []string, val float32, labels []metrics.Label)) *GoMetrics_IncrCounterWithLabels_Call
func (*GoMetrics_IncrCounterWithLabels_Call) RunAndReturn ¶
func (_c *GoMetrics_IncrCounterWithLabels_Call) RunAndReturn(run func([]string, float32, []metrics.Label)) *GoMetrics_IncrCounterWithLabels_Call
type GoMetrics_SetGaugeWithLabels_Call ¶
GoMetrics_SetGaugeWithLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetGaugeWithLabels'
func (*GoMetrics_SetGaugeWithLabels_Call) Return ¶
func (_c *GoMetrics_SetGaugeWithLabels_Call) Return() *GoMetrics_SetGaugeWithLabels_Call
func (*GoMetrics_SetGaugeWithLabels_Call) Run ¶
func (_c *GoMetrics_SetGaugeWithLabels_Call) Run(run func(key []string, val float32, labels []metrics.Label)) *GoMetrics_SetGaugeWithLabels_Call
func (*GoMetrics_SetGaugeWithLabels_Call) RunAndReturn ¶
func (_c *GoMetrics_SetGaugeWithLabels_Call) RunAndReturn(run func([]string, float32, []metrics.Label)) *GoMetrics_SetGaugeWithLabels_Call
type GoMetrics_Shutdown_Call ¶
GoMetrics_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*GoMetrics_Shutdown_Call) Return ¶
func (_c *GoMetrics_Shutdown_Call) Return() *GoMetrics_Shutdown_Call
func (*GoMetrics_Shutdown_Call) Run ¶
func (_c *GoMetrics_Shutdown_Call) Run(run func()) *GoMetrics_Shutdown_Call
func (*GoMetrics_Shutdown_Call) RunAndReturn ¶
func (_c *GoMetrics_Shutdown_Call) RunAndReturn(run func()) *GoMetrics_Shutdown_Call