Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_m *Manager) Enabled() bool
- func (_m *Manager) ForceFlush(ctx context.Context) error
- func (_m *Manager) Init() error
- func (_m *Manager) MustInit() telemetry.Manager
- func (_m *Manager) NewTracer(name string, opts ...trace.TracerOption) trace.Tracer
- func (_m *Manager) Shutdown(ctx context.Context) error
- func (_m *Manager) Tracer() trace.Tracer
- type Manager_Enabled_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) Enabled() *Manager_Enabled_Call
- func (_e *Manager_Expecter) ForceFlush(ctx interface{}) *Manager_ForceFlush_Call
- func (_e *Manager_Expecter) Init() *Manager_Init_Call
- func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call
- func (_e *Manager_Expecter) NewTracer(name interface{}, opts ...interface{}) *Manager_NewTracer_Call
- func (_e *Manager_Expecter) Shutdown(ctx interface{}) *Manager_Shutdown_Call
- func (_e *Manager_Expecter) Tracer() *Manager_Tracer_Call
- type Manager_ForceFlush_Call
- type Manager_Init_Call
- type Manager_MustInit_Call
- type Manager_NewTracer_Call
- func (_c *Manager_NewTracer_Call) Return(_a0 trace.Tracer) *Manager_NewTracer_Call
- func (_c *Manager_NewTracer_Call) Run(run func(name string, opts ...trace.TracerOption)) *Manager_NewTracer_Call
- func (_c *Manager_NewTracer_Call) RunAndReturn(run func(string, ...trace.TracerOption) trace.Tracer) *Manager_NewTracer_Call
- type Manager_Shutdown_Call
- type Manager_Tracer_Call
- type MetricsManager
- func (_m *MetricsManager) Count(metricName string, value int64, tags []string)
- func (_m *MetricsManager) Distribution(metricName string, value float64, tags []string)
- func (_m *MetricsManager) EXPECT() *MetricsManager_Expecter
- func (_m *MetricsManager) Enabled() bool
- func (_m *MetricsManager) Gauge(metricName string, value float64, tags []string)
- func (_m *MetricsManager) Histogram(metricName string, value float64, tags []string)
- func (_m *MetricsManager) MustInit() telemetry.MetricsManager
- func (_m *MetricsManager) Start(name string) telemetry.MetricPushAction
- func (_m *MetricsManager) StartBy(provider string, name string) telemetry.MetricPushAction
- func (_m *MetricsManager) StartDefault(name string) telemetry.MetricPushAction
- type MetricsManager_Count_Call
- func (_c *MetricsManager_Count_Call) Return() *MetricsManager_Count_Call
- func (_c *MetricsManager_Count_Call) Run(run func(metricName string, value int64, tags []string)) *MetricsManager_Count_Call
- func (_c *MetricsManager_Count_Call) RunAndReturn(run func(string, int64, []string)) *MetricsManager_Count_Call
- type MetricsManager_Distribution_Call
- func (_c *MetricsManager_Distribution_Call) Return() *MetricsManager_Distribution_Call
- func (_c *MetricsManager_Distribution_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Distribution_Call
- func (_c *MetricsManager_Distribution_Call) RunAndReturn(run func(string, float64, []string)) *MetricsManager_Distribution_Call
- type MetricsManager_Enabled_Call
- type MetricsManager_Expecter
- func (_e *MetricsManager_Expecter) Count(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Count_Call
- func (_e *MetricsManager_Expecter) Distribution(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Distribution_Call
- func (_e *MetricsManager_Expecter) Enabled() *MetricsManager_Enabled_Call
- func (_e *MetricsManager_Expecter) Gauge(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Gauge_Call
- func (_e *MetricsManager_Expecter) Histogram(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Histogram_Call
- func (_e *MetricsManager_Expecter) MustInit() *MetricsManager_MustInit_Call
- func (_e *MetricsManager_Expecter) Start(name interface{}) *MetricsManager_Start_Call
- func (_e *MetricsManager_Expecter) StartBy(provider interface{}, name interface{}) *MetricsManager_StartBy_Call
- func (_e *MetricsManager_Expecter) StartDefault(name interface{}) *MetricsManager_StartDefault_Call
- type MetricsManager_Gauge_Call
- func (_c *MetricsManager_Gauge_Call) Return() *MetricsManager_Gauge_Call
- func (_c *MetricsManager_Gauge_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Gauge_Call
- func (_c *MetricsManager_Gauge_Call) RunAndReturn(run func(string, float64, []string)) *MetricsManager_Gauge_Call
- type MetricsManager_Histogram_Call
- func (_c *MetricsManager_Histogram_Call) Return() *MetricsManager_Histogram_Call
- func (_c *MetricsManager_Histogram_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Histogram_Call
- func (_c *MetricsManager_Histogram_Call) RunAndReturn(run func(string, float64, []string)) *MetricsManager_Histogram_Call
- type MetricsManager_MustInit_Call
- func (_c *MetricsManager_MustInit_Call) Return(_a0 telemetry.MetricsManager) *MetricsManager_MustInit_Call
- func (_c *MetricsManager_MustInit_Call) Run(run func()) *MetricsManager_MustInit_Call
- func (_c *MetricsManager_MustInit_Call) RunAndReturn(run func() telemetry.MetricsManager) *MetricsManager_MustInit_Call
- type MetricsManager_StartBy_Call
- func (_c *MetricsManager_StartBy_Call) Return(_a0 telemetry.MetricPushAction) *MetricsManager_StartBy_Call
- func (_c *MetricsManager_StartBy_Call) Run(run func(provider string, name string)) *MetricsManager_StartBy_Call
- func (_c *MetricsManager_StartBy_Call) RunAndReturn(run func(string, string) telemetry.MetricPushAction) *MetricsManager_StartBy_Call
- type MetricsManager_StartDefault_Call
- func (_c *MetricsManager_StartDefault_Call) Return(_a0 telemetry.MetricPushAction) *MetricsManager_StartDefault_Call
- func (_c *MetricsManager_StartDefault_Call) Run(run func(name string)) *MetricsManager_StartDefault_Call
- func (_c *MetricsManager_StartDefault_Call) RunAndReturn(run func(string) telemetry.MetricPushAction) *MetricsManager_StartDefault_Call
- type MetricsManager_Start_Call
- func (_c *MetricsManager_Start_Call) Return(_a0 telemetry.MetricPushAction) *MetricsManager_Start_Call
- func (_c *MetricsManager_Start_Call) Run(run func(name string)) *MetricsManager_Start_Call
- func (_c *MetricsManager_Start_Call) RunAndReturn(run func(string) telemetry.MetricPushAction) *MetricsManager_Start_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) ForceFlush ¶
ForceFlush provides a mock function with given fields: ctx
type Manager_Enabled_Call ¶
Manager_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'
func (*Manager_Enabled_Call) Return ¶
func (_c *Manager_Enabled_Call) Return(_a0 bool) *Manager_Enabled_Call
func (*Manager_Enabled_Call) Run ¶
func (_c *Manager_Enabled_Call) Run(run func()) *Manager_Enabled_Call
func (*Manager_Enabled_Call) RunAndReturn ¶
func (_c *Manager_Enabled_Call) RunAndReturn(run func() bool) *Manager_Enabled_Call
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Enabled ¶
func (_e *Manager_Expecter) Enabled() *Manager_Enabled_Call
Enabled is a helper method to define mock.On call
func (*Manager_Expecter) ForceFlush ¶
func (_e *Manager_Expecter) ForceFlush(ctx interface{}) *Manager_ForceFlush_Call
ForceFlush is a helper method to define mock.On call
- ctx context.Context
func (*Manager_Expecter) Init ¶
func (_e *Manager_Expecter) Init() *Manager_Init_Call
Init is a helper method to define mock.On call
func (*Manager_Expecter) MustInit ¶
func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call
MustInit is a helper method to define mock.On call
func (*Manager_Expecter) NewTracer ¶
func (_e *Manager_Expecter) NewTracer(name interface{}, opts ...interface{}) *Manager_NewTracer_Call
NewTracer is a helper method to define mock.On call
- name string
- opts ...trace.TracerOption
func (*Manager_Expecter) Shutdown ¶
func (_e *Manager_Expecter) Shutdown(ctx interface{}) *Manager_Shutdown_Call
Shutdown is a helper method to define mock.On call
- ctx context.Context
func (*Manager_Expecter) Tracer ¶
func (_e *Manager_Expecter) Tracer() *Manager_Tracer_Call
Tracer is a helper method to define mock.On call
type Manager_ForceFlush_Call ¶
Manager_ForceFlush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceFlush'
func (*Manager_ForceFlush_Call) Return ¶
func (_c *Manager_ForceFlush_Call) Return(_a0 error) *Manager_ForceFlush_Call
func (*Manager_ForceFlush_Call) Run ¶
func (_c *Manager_ForceFlush_Call) Run(run func(ctx context.Context)) *Manager_ForceFlush_Call
func (*Manager_ForceFlush_Call) RunAndReturn ¶
func (_c *Manager_ForceFlush_Call) RunAndReturn(run func(context.Context) error) *Manager_ForceFlush_Call
type Manager_Init_Call ¶
Manager_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*Manager_Init_Call) Return ¶
func (_c *Manager_Init_Call) Return(_a0 error) *Manager_Init_Call
func (*Manager_Init_Call) Run ¶
func (_c *Manager_Init_Call) Run(run func()) *Manager_Init_Call
func (*Manager_Init_Call) RunAndReturn ¶
func (_c *Manager_Init_Call) RunAndReturn(run func() error) *Manager_Init_Call
type Manager_MustInit_Call ¶
Manager_MustInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustInit'
func (*Manager_MustInit_Call) Return ¶
func (_c *Manager_MustInit_Call) Return(_a0 telemetry.Manager) *Manager_MustInit_Call
func (*Manager_MustInit_Call) Run ¶
func (_c *Manager_MustInit_Call) Run(run func()) *Manager_MustInit_Call
func (*Manager_MustInit_Call) RunAndReturn ¶
func (_c *Manager_MustInit_Call) RunAndReturn(run func() telemetry.Manager) *Manager_MustInit_Call
type Manager_NewTracer_Call ¶
Manager_NewTracer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTracer'
func (*Manager_NewTracer_Call) Return ¶
func (_c *Manager_NewTracer_Call) Return(_a0 trace.Tracer) *Manager_NewTracer_Call
func (*Manager_NewTracer_Call) Run ¶
func (_c *Manager_NewTracer_Call) Run(run func(name string, opts ...trace.TracerOption)) *Manager_NewTracer_Call
func (*Manager_NewTracer_Call) RunAndReturn ¶
func (_c *Manager_NewTracer_Call) RunAndReturn(run func(string, ...trace.TracerOption) trace.Tracer) *Manager_NewTracer_Call
type Manager_Shutdown_Call ¶
Manager_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*Manager_Shutdown_Call) Return ¶
func (_c *Manager_Shutdown_Call) Return(_a0 error) *Manager_Shutdown_Call
func (*Manager_Shutdown_Call) Run ¶
func (_c *Manager_Shutdown_Call) Run(run func(ctx context.Context)) *Manager_Shutdown_Call
func (*Manager_Shutdown_Call) RunAndReturn ¶
func (_c *Manager_Shutdown_Call) RunAndReturn(run func(context.Context) error) *Manager_Shutdown_Call
type Manager_Tracer_Call ¶
Manager_Tracer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tracer'
func (*Manager_Tracer_Call) Return ¶
func (_c *Manager_Tracer_Call) Return(_a0 trace.Tracer) *Manager_Tracer_Call
func (*Manager_Tracer_Call) Run ¶
func (_c *Manager_Tracer_Call) Run(run func()) *Manager_Tracer_Call
func (*Manager_Tracer_Call) RunAndReturn ¶
func (_c *Manager_Tracer_Call) RunAndReturn(run func() trace.Tracer) *Manager_Tracer_Call
type MetricsManager ¶
MetricsManager is an autogenerated mock type for the MetricsManager type
func NewMetricsManager ¶
func NewMetricsManager(t interface { mock.TestingT Cleanup(func()) }) *MetricsManager
NewMetricsManager creates a new instance of MetricsManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MetricsManager) Count ¶
func (_m *MetricsManager) Count(metricName string, value int64, tags []string)
Count provides a mock function with given fields: metricName, value, tags
func (*MetricsManager) Distribution ¶
func (_m *MetricsManager) Distribution(metricName string, value float64, tags []string)
Distribution provides a mock function with given fields: metricName, value, tags
func (*MetricsManager) EXPECT ¶
func (_m *MetricsManager) EXPECT() *MetricsManager_Expecter
func (*MetricsManager) Enabled ¶
func (_m *MetricsManager) Enabled() bool
Enabled provides a mock function with given fields:
func (*MetricsManager) Gauge ¶
func (_m *MetricsManager) Gauge(metricName string, value float64, tags []string)
Gauge provides a mock function with given fields: metricName, value, tags
func (*MetricsManager) Histogram ¶
func (_m *MetricsManager) Histogram(metricName string, value float64, tags []string)
Histogram provides a mock function with given fields: metricName, value, tags
func (*MetricsManager) MustInit ¶
func (_m *MetricsManager) MustInit() telemetry.MetricsManager
MustInit provides a mock function with given fields:
func (*MetricsManager) Start ¶
func (_m *MetricsManager) Start(name string) telemetry.MetricPushAction
Start provides a mock function with given fields: name
func (*MetricsManager) StartBy ¶
func (_m *MetricsManager) StartBy(provider string, name string) telemetry.MetricPushAction
StartBy provides a mock function with given fields: provider, name
func (*MetricsManager) StartDefault ¶
func (_m *MetricsManager) StartDefault(name string) telemetry.MetricPushAction
StartDefault provides a mock function with given fields: name
type MetricsManager_Count_Call ¶
MetricsManager_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'
func (*MetricsManager_Count_Call) Return ¶
func (_c *MetricsManager_Count_Call) Return() *MetricsManager_Count_Call
func (*MetricsManager_Count_Call) Run ¶
func (_c *MetricsManager_Count_Call) Run(run func(metricName string, value int64, tags []string)) *MetricsManager_Count_Call
func (*MetricsManager_Count_Call) RunAndReturn ¶
func (_c *MetricsManager_Count_Call) RunAndReturn(run func(string, int64, []string)) *MetricsManager_Count_Call
type MetricsManager_Distribution_Call ¶
MetricsManager_Distribution_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Distribution'
func (*MetricsManager_Distribution_Call) Return ¶
func (_c *MetricsManager_Distribution_Call) Return() *MetricsManager_Distribution_Call
func (*MetricsManager_Distribution_Call) Run ¶
func (_c *MetricsManager_Distribution_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Distribution_Call
func (*MetricsManager_Distribution_Call) RunAndReturn ¶
func (_c *MetricsManager_Distribution_Call) RunAndReturn(run func(string, float64, []string)) *MetricsManager_Distribution_Call
type MetricsManager_Enabled_Call ¶
MetricsManager_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'
func (*MetricsManager_Enabled_Call) Return ¶
func (_c *MetricsManager_Enabled_Call) Return(_a0 bool) *MetricsManager_Enabled_Call
func (*MetricsManager_Enabled_Call) Run ¶
func (_c *MetricsManager_Enabled_Call) Run(run func()) *MetricsManager_Enabled_Call
func (*MetricsManager_Enabled_Call) RunAndReturn ¶
func (_c *MetricsManager_Enabled_Call) RunAndReturn(run func() bool) *MetricsManager_Enabled_Call
type MetricsManager_Expecter ¶
type MetricsManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MetricsManager_Expecter) Count ¶
func (_e *MetricsManager_Expecter) Count(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Count_Call
Count is a helper method to define mock.On call
- metricName string
- value int64
- tags []string
func (*MetricsManager_Expecter) Distribution ¶
func (_e *MetricsManager_Expecter) Distribution(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Distribution_Call
Distribution is a helper method to define mock.On call
- metricName string
- value float64
- tags []string
func (*MetricsManager_Expecter) Enabled ¶
func (_e *MetricsManager_Expecter) Enabled() *MetricsManager_Enabled_Call
Enabled is a helper method to define mock.On call
func (*MetricsManager_Expecter) Gauge ¶
func (_e *MetricsManager_Expecter) Gauge(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Gauge_Call
Gauge is a helper method to define mock.On call
- metricName string
- value float64
- tags []string
func (*MetricsManager_Expecter) Histogram ¶
func (_e *MetricsManager_Expecter) Histogram(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Histogram_Call
Histogram is a helper method to define mock.On call
- metricName string
- value float64
- tags []string
func (*MetricsManager_Expecter) MustInit ¶
func (_e *MetricsManager_Expecter) MustInit() *MetricsManager_MustInit_Call
MustInit is a helper method to define mock.On call
func (*MetricsManager_Expecter) Start ¶
func (_e *MetricsManager_Expecter) Start(name interface{}) *MetricsManager_Start_Call
Start is a helper method to define mock.On call
- name string
func (*MetricsManager_Expecter) StartBy ¶
func (_e *MetricsManager_Expecter) StartBy(provider interface{}, name interface{}) *MetricsManager_StartBy_Call
StartBy is a helper method to define mock.On call
- provider string
- name string
func (*MetricsManager_Expecter) StartDefault ¶
func (_e *MetricsManager_Expecter) StartDefault(name interface{}) *MetricsManager_StartDefault_Call
StartDefault is a helper method to define mock.On call
- name string
type MetricsManager_Gauge_Call ¶
MetricsManager_Gauge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Gauge'
func (*MetricsManager_Gauge_Call) Return ¶
func (_c *MetricsManager_Gauge_Call) Return() *MetricsManager_Gauge_Call
func (*MetricsManager_Gauge_Call) Run ¶
func (_c *MetricsManager_Gauge_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Gauge_Call
func (*MetricsManager_Gauge_Call) RunAndReturn ¶
func (_c *MetricsManager_Gauge_Call) RunAndReturn(run func(string, float64, []string)) *MetricsManager_Gauge_Call
type MetricsManager_Histogram_Call ¶
MetricsManager_Histogram_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Histogram'
func (*MetricsManager_Histogram_Call) Return ¶
func (_c *MetricsManager_Histogram_Call) Return() *MetricsManager_Histogram_Call
func (*MetricsManager_Histogram_Call) Run ¶
func (_c *MetricsManager_Histogram_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Histogram_Call
func (*MetricsManager_Histogram_Call) RunAndReturn ¶
func (_c *MetricsManager_Histogram_Call) RunAndReturn(run func(string, float64, []string)) *MetricsManager_Histogram_Call
type MetricsManager_MustInit_Call ¶
MetricsManager_MustInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustInit'
func (*MetricsManager_MustInit_Call) Return ¶
func (_c *MetricsManager_MustInit_Call) Return(_a0 telemetry.MetricsManager) *MetricsManager_MustInit_Call
func (*MetricsManager_MustInit_Call) Run ¶
func (_c *MetricsManager_MustInit_Call) Run(run func()) *MetricsManager_MustInit_Call
func (*MetricsManager_MustInit_Call) RunAndReturn ¶
func (_c *MetricsManager_MustInit_Call) RunAndReturn(run func() telemetry.MetricsManager) *MetricsManager_MustInit_Call
type MetricsManager_StartBy_Call ¶
MetricsManager_StartBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartBy'
func (*MetricsManager_StartBy_Call) Return ¶
func (_c *MetricsManager_StartBy_Call) Return(_a0 telemetry.MetricPushAction) *MetricsManager_StartBy_Call
func (*MetricsManager_StartBy_Call) Run ¶
func (_c *MetricsManager_StartBy_Call) Run(run func(provider string, name string)) *MetricsManager_StartBy_Call
func (*MetricsManager_StartBy_Call) RunAndReturn ¶
func (_c *MetricsManager_StartBy_Call) RunAndReturn(run func(string, string) telemetry.MetricPushAction) *MetricsManager_StartBy_Call
type MetricsManager_StartDefault_Call ¶
MetricsManager_StartDefault_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartDefault'
func (*MetricsManager_StartDefault_Call) Return ¶
func (_c *MetricsManager_StartDefault_Call) Return(_a0 telemetry.MetricPushAction) *MetricsManager_StartDefault_Call
func (*MetricsManager_StartDefault_Call) Run ¶
func (_c *MetricsManager_StartDefault_Call) Run(run func(name string)) *MetricsManager_StartDefault_Call
func (*MetricsManager_StartDefault_Call) RunAndReturn ¶
func (_c *MetricsManager_StartDefault_Call) RunAndReturn(run func(string) telemetry.MetricPushAction) *MetricsManager_StartDefault_Call
type MetricsManager_Start_Call ¶
MetricsManager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MetricsManager_Start_Call) Return ¶
func (_c *MetricsManager_Start_Call) Return(_a0 telemetry.MetricPushAction) *MetricsManager_Start_Call
func (*MetricsManager_Start_Call) Run ¶
func (_c *MetricsManager_Start_Call) Run(run func(name string)) *MetricsManager_Start_Call
func (*MetricsManager_Start_Call) RunAndReturn ¶
func (_c *MetricsManager_Start_Call) RunAndReturn(run func(string) telemetry.MetricPushAction) *MetricsManager_Start_Call