Documentation
¶
Index ¶
- type ExporterFactory
- type ExporterFactory_Build_Call
- func (_c *ExporterFactory_Build_Call) Return(_a0 metrics.Exporter, _a1 error) *ExporterFactory_Build_Call
- func (_c *ExporterFactory_Build_Call) Run(run func(cfg telemetry.ExporterConfig)) *ExporterFactory_Build_Call
- func (_c *ExporterFactory_Build_Call) RunAndReturn(run func(telemetry.ExporterConfig) (metrics.Exporter, error)) *ExporterFactory_Build_Call
- type ExporterFactory_Expecter
- type ExporterFactory_Validate_Call
- func (_c *ExporterFactory_Validate_Call) Return(_a0 error) *ExporterFactory_Validate_Call
- func (_c *ExporterFactory_Validate_Call) Run(run func(cfg telemetry.ExporterConfig)) *ExporterFactory_Validate_Call
- func (_c *ExporterFactory_Validate_Call) RunAndReturn(run func(telemetry.ExporterConfig) error) *ExporterFactory_Validate_Call
- type Worker
- type Worker_Expecter
- type Worker_Process_Call
- type Worker_Shutdown_Call
- type Worker_StartWorkers_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExporterFactory ¶
ExporterFactory is an autogenerated mock type for the ExporterFactory type
func NewExporterFactory ¶
func NewExporterFactory(t interface {
mock.TestingT
Cleanup(func())
}) *ExporterFactory
NewExporterFactory creates a new instance of ExporterFactory. 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 (*ExporterFactory) Build ¶
func (_m *ExporterFactory) Build(cfg telemetry.ExporterConfig) (metrics.Exporter, error)
Build provides a mock function with given fields: cfg
func (*ExporterFactory) EXPECT ¶
func (_m *ExporterFactory) EXPECT() *ExporterFactory_Expecter
func (*ExporterFactory) Validate ¶
func (_m *ExporterFactory) Validate(cfg telemetry.ExporterConfig) error
Validate provides a mock function with given fields: cfg
type ExporterFactory_Build_Call ¶
ExporterFactory_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*ExporterFactory_Build_Call) Return ¶
func (_c *ExporterFactory_Build_Call) Return(_a0 metrics.Exporter, _a1 error) *ExporterFactory_Build_Call
func (*ExporterFactory_Build_Call) Run ¶
func (_c *ExporterFactory_Build_Call) Run(run func(cfg telemetry.ExporterConfig)) *ExporterFactory_Build_Call
func (*ExporterFactory_Build_Call) RunAndReturn ¶
func (_c *ExporterFactory_Build_Call) RunAndReturn(run func(telemetry.ExporterConfig) (metrics.Exporter, error)) *ExporterFactory_Build_Call
type ExporterFactory_Expecter ¶
type ExporterFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*ExporterFactory_Expecter) Build ¶
func (_e *ExporterFactory_Expecter) Build(cfg interface{}) *ExporterFactory_Build_Call
Build is a helper method to define mock.On call
- cfg telemetry.ExporterConfig
func (*ExporterFactory_Expecter) Validate ¶
func (_e *ExporterFactory_Expecter) Validate(cfg interface{}) *ExporterFactory_Validate_Call
Validate is a helper method to define mock.On call
- cfg telemetry.ExporterConfig
type ExporterFactory_Validate_Call ¶
ExporterFactory_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*ExporterFactory_Validate_Call) Return ¶
func (_c *ExporterFactory_Validate_Call) Return(_a0 error) *ExporterFactory_Validate_Call
func (*ExporterFactory_Validate_Call) Run ¶
func (_c *ExporterFactory_Validate_Call) Run(run func(cfg telemetry.ExporterConfig)) *ExporterFactory_Validate_Call
func (*ExporterFactory_Validate_Call) RunAndReturn ¶
func (_c *ExporterFactory_Validate_Call) RunAndReturn(run func(telemetry.ExporterConfig) error) *ExporterFactory_Validate_Call
type Worker ¶
Worker is an autogenerated mock type for the Worker type
func NewWorker ¶
NewWorker creates a new instance of Worker. 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 (*Worker) EXPECT ¶
func (_m *Worker) EXPECT() *Worker_Expecter
func (*Worker) Process ¶
func (_m *Worker) Process(requestTrace *trace.RequestTrace, req *context.RequestContext, resp *context.ResponseContext, startTime time.Time, endTime time.Time, exporters []telemetry.ExporterConfig)
Process provides a mock function with given fields: requestTrace, req, resp, startTime, endTime, exporters
func (*Worker) Shutdown ¶
func (_m *Worker) Shutdown()
Shutdown provides a mock function with no fields
func (*Worker) StartWorkers ¶
StartWorkers provides a mock function with given fields: n
type Worker_Expecter ¶
type Worker_Expecter struct {
// contains filtered or unexported fields
}
func (*Worker_Expecter) Process ¶
func (_e *Worker_Expecter) Process(requestTrace interface{}, req interface{}, resp interface{}, startTime interface{}, endTime interface{}, exporters interface{}) *Worker_Process_Call
Process is a helper method to define mock.On call
- requestTrace *trace.RequestTrace
- req *context.RequestContext
- resp *context.ResponseContext
- startTime time.Time
- endTime time.Time
- exporters []telemetry.ExporterConfig
func (*Worker_Expecter) Shutdown ¶
func (_e *Worker_Expecter) Shutdown() *Worker_Shutdown_Call
Shutdown is a helper method to define mock.On call
func (*Worker_Expecter) StartWorkers ¶
func (_e *Worker_Expecter) StartWorkers(n interface{}) *Worker_StartWorkers_Call
StartWorkers is a helper method to define mock.On call
- n int
type Worker_Process_Call ¶
Worker_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
func (*Worker_Process_Call) Return ¶
func (_c *Worker_Process_Call) Return() *Worker_Process_Call
func (*Worker_Process_Call) Run ¶
func (_c *Worker_Process_Call) Run(run func(requestTrace *trace.RequestTrace, req *context.RequestContext, resp *context.ResponseContext, startTime time.Time, endTime time.Time, exporters []telemetry.ExporterConfig)) *Worker_Process_Call
func (*Worker_Process_Call) RunAndReturn ¶
func (_c *Worker_Process_Call) RunAndReturn(run func(*trace.RequestTrace, *context.RequestContext, *context.ResponseContext, time.Time, time.Time, []telemetry.ExporterConfig)) *Worker_Process_Call
type Worker_Shutdown_Call ¶
Worker_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*Worker_Shutdown_Call) Return ¶
func (_c *Worker_Shutdown_Call) Return() *Worker_Shutdown_Call
func (*Worker_Shutdown_Call) Run ¶
func (_c *Worker_Shutdown_Call) Run(run func()) *Worker_Shutdown_Call
func (*Worker_Shutdown_Call) RunAndReturn ¶
func (_c *Worker_Shutdown_Call) RunAndReturn(run func()) *Worker_Shutdown_Call
type Worker_StartWorkers_Call ¶
Worker_StartWorkers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartWorkers'
func (*Worker_StartWorkers_Call) Return ¶
func (_c *Worker_StartWorkers_Call) Return() *Worker_StartWorkers_Call
func (*Worker_StartWorkers_Call) Run ¶
func (_c *Worker_StartWorkers_Call) Run(run func(n int)) *Worker_StartWorkers_Call
func (*Worker_StartWorkers_Call) RunAndReturn ¶
func (_c *Worker_StartWorkers_Call) RunAndReturn(run func(int)) *Worker_StartWorkers_Call