Documentation ¶
Index ¶
- type OTLPExporter
- type OTLPExporter_Expecter
- type OTLPExporter_Export_Call
- func (_c *OTLPExporter_Export_Call) Return(_a0 error) *OTLPExporter_Export_Call
- func (_c *OTLPExporter_Export_Call) Run(run func(ctx context.Context, records []log.Record)) *OTLPExporter_Export_Call
- func (_c *OTLPExporter_Export_Call) RunAndReturn(run func(context.Context, []log.Record) error) *OTLPExporter_Export_Call
- type OTLPExporter_ForceFlush_Call
- func (_c *OTLPExporter_ForceFlush_Call) Return(_a0 error) *OTLPExporter_ForceFlush_Call
- func (_c *OTLPExporter_ForceFlush_Call) Run(run func(ctx context.Context)) *OTLPExporter_ForceFlush_Call
- func (_c *OTLPExporter_ForceFlush_Call) RunAndReturn(run func(context.Context) error) *OTLPExporter_ForceFlush_Call
- type OTLPExporter_Shutdown_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OTLPExporter ¶
OTLPExporter is an autogenerated mock type for the OTLPExporter type
func NewOTLPExporter ¶
func NewOTLPExporter(t interface { mock.TestingT Cleanup(func()) }) *OTLPExporter
NewOTLPExporter creates a new instance of OTLPExporter. 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 (*OTLPExporter) EXPECT ¶
func (_m *OTLPExporter) EXPECT() *OTLPExporter_Expecter
func (*OTLPExporter) ForceFlush ¶
func (_m *OTLPExporter) ForceFlush(ctx context.Context) error
ForceFlush provides a mock function with given fields: ctx
type OTLPExporter_Expecter ¶
type OTLPExporter_Expecter struct {
// contains filtered or unexported fields
}
func (*OTLPExporter_Expecter) Export ¶
func (_e *OTLPExporter_Expecter) Export(ctx interface{}, records interface{}) *OTLPExporter_Export_Call
Export is a helper method to define mock.On call
- ctx context.Context
- records []log.Record
func (*OTLPExporter_Expecter) ForceFlush ¶
func (_e *OTLPExporter_Expecter) ForceFlush(ctx interface{}) *OTLPExporter_ForceFlush_Call
ForceFlush is a helper method to define mock.On call
- ctx context.Context
func (*OTLPExporter_Expecter) Shutdown ¶
func (_e *OTLPExporter_Expecter) Shutdown(ctx interface{}) *OTLPExporter_Shutdown_Call
Shutdown is a helper method to define mock.On call
- ctx context.Context
type OTLPExporter_Export_Call ¶
OTLPExporter_Export_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Export'
func (*OTLPExporter_Export_Call) Return ¶
func (_c *OTLPExporter_Export_Call) Return(_a0 error) *OTLPExporter_Export_Call
func (*OTLPExporter_Export_Call) Run ¶
func (_c *OTLPExporter_Export_Call) Run(run func(ctx context.Context, records []log.Record)) *OTLPExporter_Export_Call
func (*OTLPExporter_Export_Call) RunAndReturn ¶
func (_c *OTLPExporter_Export_Call) RunAndReturn(run func(context.Context, []log.Record) error) *OTLPExporter_Export_Call
type OTLPExporter_ForceFlush_Call ¶
OTLPExporter_ForceFlush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceFlush'
func (*OTLPExporter_ForceFlush_Call) Return ¶
func (_c *OTLPExporter_ForceFlush_Call) Return(_a0 error) *OTLPExporter_ForceFlush_Call
func (*OTLPExporter_ForceFlush_Call) Run ¶
func (_c *OTLPExporter_ForceFlush_Call) Run(run func(ctx context.Context)) *OTLPExporter_ForceFlush_Call
func (*OTLPExporter_ForceFlush_Call) RunAndReturn ¶
func (_c *OTLPExporter_ForceFlush_Call) RunAndReturn(run func(context.Context) error) *OTLPExporter_ForceFlush_Call
type OTLPExporter_Shutdown_Call ¶
OTLPExporter_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*OTLPExporter_Shutdown_Call) Return ¶
func (_c *OTLPExporter_Shutdown_Call) Return(_a0 error) *OTLPExporter_Shutdown_Call
func (*OTLPExporter_Shutdown_Call) Run ¶
func (_c *OTLPExporter_Shutdown_Call) Run(run func(ctx context.Context)) *OTLPExporter_Shutdown_Call
func (*OTLPExporter_Shutdown_Call) RunAndReturn ¶
func (_c *OTLPExporter_Shutdown_Call) RunAndReturn(run func(context.Context) error) *OTLPExporter_Shutdown_Call