Documentation ¶
Index ¶
- type Span
- type Span_AddAnnotation_Call
- type Span_AddError_Call
- type Span_AddMetadata_Call
- type Span_Expecter
- func (_e *Span_Expecter) AddAnnotation(key interface{}, value interface{}) *Span_AddAnnotation_Call
- func (_e *Span_Expecter) AddError(err interface{}) *Span_AddError_Call
- func (_e *Span_Expecter) AddMetadata(key interface{}, value interface{}) *Span_AddMetadata_Call
- func (_e *Span_Expecter) Finish() *Span_Finish_Call
- func (_e *Span_Expecter) GetId() *Span_GetId_Call
- func (_e *Span_Expecter) GetTrace() *Span_GetTrace_Call
- type Span_Finish_Call
- type Span_GetId_Call
- type Span_GetTrace_Call
- type TraceAble
- type TraceAble_Expecter
- type TraceAble_GetTrace_Call
- type Tracer
- func (_m *Tracer) EXPECT() *Tracer_Expecter
- func (_m *Tracer) HttpHandler(h http.Handler) http.Handler
- func (_m *Tracer) StartSpan(name string) (context.Context, tracing.Span)
- func (_m *Tracer) StartSpanFromContext(ctx context.Context, name string) (context.Context, tracing.Span)
- func (_m *Tracer) StartSubSpan(ctx context.Context, name string) (context.Context, tracing.Span)
- type Tracer_Expecter
- func (_e *Tracer_Expecter) HttpHandler(h interface{}) *Tracer_HttpHandler_Call
- func (_e *Tracer_Expecter) StartSpan(name interface{}) *Tracer_StartSpan_Call
- func (_e *Tracer_Expecter) StartSpanFromContext(ctx interface{}, name interface{}) *Tracer_StartSpanFromContext_Call
- func (_e *Tracer_Expecter) StartSubSpan(ctx interface{}, name interface{}) *Tracer_StartSubSpan_Call
- type Tracer_HttpHandler_Call
- type Tracer_StartSpanFromContext_Call
- func (_c *Tracer_StartSpanFromContext_Call) Return(_a0 context.Context, _a1 tracing.Span) *Tracer_StartSpanFromContext_Call
- func (_c *Tracer_StartSpanFromContext_Call) Run(run func(ctx context.Context, name string)) *Tracer_StartSpanFromContext_Call
- func (_c *Tracer_StartSpanFromContext_Call) RunAndReturn(run func(context.Context, string) (context.Context, tracing.Span)) *Tracer_StartSpanFromContext_Call
- type Tracer_StartSpan_Call
- func (_c *Tracer_StartSpan_Call) Return(_a0 context.Context, _a1 tracing.Span) *Tracer_StartSpan_Call
- func (_c *Tracer_StartSpan_Call) Run(run func(name string)) *Tracer_StartSpan_Call
- func (_c *Tracer_StartSpan_Call) RunAndReturn(run func(string) (context.Context, tracing.Span)) *Tracer_StartSpan_Call
- type Tracer_StartSubSpan_Call
- func (_c *Tracer_StartSubSpan_Call) Return(_a0 context.Context, _a1 tracing.Span) *Tracer_StartSubSpan_Call
- func (_c *Tracer_StartSubSpan_Call) Run(run func(ctx context.Context, name string)) *Tracer_StartSubSpan_Call
- func (_c *Tracer_StartSubSpan_Call) RunAndReturn(run func(context.Context, string) (context.Context, tracing.Span)) *Tracer_StartSubSpan_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Span ¶
Span is an autogenerated mock type for the Span type
func NewSpan ¶
NewSpan creates a new instance of Span. 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 (*Span) AddAnnotation ¶
AddAnnotation provides a mock function with given fields: key, value
func (*Span) AddMetadata ¶
AddMetadata provides a mock function with given fields: key, value
func (*Span) EXPECT ¶
func (_m *Span) EXPECT() *Span_Expecter
type Span_AddAnnotation_Call ¶
Span_AddAnnotation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddAnnotation'
func (*Span_AddAnnotation_Call) Return ¶
func (_c *Span_AddAnnotation_Call) Return() *Span_AddAnnotation_Call
func (*Span_AddAnnotation_Call) Run ¶
func (_c *Span_AddAnnotation_Call) Run(run func(key string, value string)) *Span_AddAnnotation_Call
func (*Span_AddAnnotation_Call) RunAndReturn ¶
func (_c *Span_AddAnnotation_Call) RunAndReturn(run func(string, string)) *Span_AddAnnotation_Call
type Span_AddError_Call ¶
Span_AddError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddError'
func (*Span_AddError_Call) Return ¶
func (_c *Span_AddError_Call) Return() *Span_AddError_Call
func (*Span_AddError_Call) Run ¶
func (_c *Span_AddError_Call) Run(run func(err error)) *Span_AddError_Call
func (*Span_AddError_Call) RunAndReturn ¶
func (_c *Span_AddError_Call) RunAndReturn(run func(error)) *Span_AddError_Call
type Span_AddMetadata_Call ¶
Span_AddMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMetadata'
func (*Span_AddMetadata_Call) Return ¶
func (_c *Span_AddMetadata_Call) Return() *Span_AddMetadata_Call
func (*Span_AddMetadata_Call) Run ¶
func (_c *Span_AddMetadata_Call) Run(run func(key string, value interface{})) *Span_AddMetadata_Call
func (*Span_AddMetadata_Call) RunAndReturn ¶
func (_c *Span_AddMetadata_Call) RunAndReturn(run func(string, interface{})) *Span_AddMetadata_Call
type Span_Expecter ¶
type Span_Expecter struct {
// contains filtered or unexported fields
}
func (*Span_Expecter) AddAnnotation ¶
func (_e *Span_Expecter) AddAnnotation(key interface{}, value interface{}) *Span_AddAnnotation_Call
AddAnnotation is a helper method to define mock.On call
- key string
- value string
func (*Span_Expecter) AddError ¶
func (_e *Span_Expecter) AddError(err interface{}) *Span_AddError_Call
AddError is a helper method to define mock.On call
- err error
func (*Span_Expecter) AddMetadata ¶
func (_e *Span_Expecter) AddMetadata(key interface{}, value interface{}) *Span_AddMetadata_Call
AddMetadata is a helper method to define mock.On call
- key string
- value interface{}
func (*Span_Expecter) Finish ¶
func (_e *Span_Expecter) Finish() *Span_Finish_Call
Finish is a helper method to define mock.On call
func (*Span_Expecter) GetId ¶
func (_e *Span_Expecter) GetId() *Span_GetId_Call
GetId is a helper method to define mock.On call
func (*Span_Expecter) GetTrace ¶
func (_e *Span_Expecter) GetTrace() *Span_GetTrace_Call
GetTrace is a helper method to define mock.On call
type Span_Finish_Call ¶
Span_Finish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finish'
func (*Span_Finish_Call) Return ¶
func (_c *Span_Finish_Call) Return() *Span_Finish_Call
func (*Span_Finish_Call) Run ¶
func (_c *Span_Finish_Call) Run(run func()) *Span_Finish_Call
func (*Span_Finish_Call) RunAndReturn ¶
func (_c *Span_Finish_Call) RunAndReturn(run func()) *Span_Finish_Call
type Span_GetId_Call ¶
Span_GetId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetId'
func (*Span_GetId_Call) Return ¶
func (_c *Span_GetId_Call) Return(_a0 string) *Span_GetId_Call
func (*Span_GetId_Call) Run ¶
func (_c *Span_GetId_Call) Run(run func()) *Span_GetId_Call
func (*Span_GetId_Call) RunAndReturn ¶
func (_c *Span_GetId_Call) RunAndReturn(run func() string) *Span_GetId_Call
type Span_GetTrace_Call ¶
Span_GetTrace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTrace'
func (*Span_GetTrace_Call) Return ¶
func (_c *Span_GetTrace_Call) Return(_a0 *tracing.Trace) *Span_GetTrace_Call
func (*Span_GetTrace_Call) Run ¶
func (_c *Span_GetTrace_Call) Run(run func()) *Span_GetTrace_Call
func (*Span_GetTrace_Call) RunAndReturn ¶
func (_c *Span_GetTrace_Call) RunAndReturn(run func() *tracing.Trace) *Span_GetTrace_Call
type TraceAble ¶
TraceAble is an autogenerated mock type for the TraceAble type
func NewTraceAble ¶
NewTraceAble creates a new instance of TraceAble. 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 (*TraceAble) EXPECT ¶
func (_m *TraceAble) EXPECT() *TraceAble_Expecter
type TraceAble_Expecter ¶
type TraceAble_Expecter struct {
// contains filtered or unexported fields
}
func (*TraceAble_Expecter) GetTrace ¶
func (_e *TraceAble_Expecter) GetTrace() *TraceAble_GetTrace_Call
GetTrace is a helper method to define mock.On call
type TraceAble_GetTrace_Call ¶
TraceAble_GetTrace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTrace'
func (*TraceAble_GetTrace_Call) Return ¶
func (_c *TraceAble_GetTrace_Call) Return(_a0 *tracing.Trace) *TraceAble_GetTrace_Call
func (*TraceAble_GetTrace_Call) Run ¶
func (_c *TraceAble_GetTrace_Call) Run(run func()) *TraceAble_GetTrace_Call
func (*TraceAble_GetTrace_Call) RunAndReturn ¶
func (_c *TraceAble_GetTrace_Call) RunAndReturn(run func() *tracing.Trace) *TraceAble_GetTrace_Call
type Tracer ¶
Tracer is an autogenerated mock type for the Tracer type
func NewTracer ¶
NewTracer creates a new instance of Tracer. 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 (*Tracer) EXPECT ¶
func (_m *Tracer) EXPECT() *Tracer_Expecter
func (*Tracer) HttpHandler ¶
HttpHandler provides a mock function with given fields: h
type Tracer_Expecter ¶
type Tracer_Expecter struct {
// contains filtered or unexported fields
}
func (*Tracer_Expecter) HttpHandler ¶
func (_e *Tracer_Expecter) HttpHandler(h interface{}) *Tracer_HttpHandler_Call
HttpHandler is a helper method to define mock.On call
- h http.Handler
func (*Tracer_Expecter) StartSpan ¶
func (_e *Tracer_Expecter) StartSpan(name interface{}) *Tracer_StartSpan_Call
StartSpan is a helper method to define mock.On call
- name string
func (*Tracer_Expecter) StartSpanFromContext ¶
func (_e *Tracer_Expecter) StartSpanFromContext(ctx interface{}, name interface{}) *Tracer_StartSpanFromContext_Call
StartSpanFromContext is a helper method to define mock.On call
- ctx context.Context
- name string
func (*Tracer_Expecter) StartSubSpan ¶
func (_e *Tracer_Expecter) StartSubSpan(ctx interface{}, name interface{}) *Tracer_StartSubSpan_Call
StartSubSpan is a helper method to define mock.On call
- ctx context.Context
- name string
type Tracer_HttpHandler_Call ¶
Tracer_HttpHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HttpHandler'
func (*Tracer_HttpHandler_Call) Return ¶
func (_c *Tracer_HttpHandler_Call) Return(_a0 http.Handler) *Tracer_HttpHandler_Call
func (*Tracer_HttpHandler_Call) Run ¶
func (_c *Tracer_HttpHandler_Call) Run(run func(h http.Handler)) *Tracer_HttpHandler_Call
func (*Tracer_HttpHandler_Call) RunAndReturn ¶
func (_c *Tracer_HttpHandler_Call) RunAndReturn(run func(http.Handler) http.Handler) *Tracer_HttpHandler_Call
type Tracer_StartSpanFromContext_Call ¶
Tracer_StartSpanFromContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartSpanFromContext'
func (*Tracer_StartSpanFromContext_Call) Return ¶
func (_c *Tracer_StartSpanFromContext_Call) Return(_a0 context.Context, _a1 tracing.Span) *Tracer_StartSpanFromContext_Call
func (*Tracer_StartSpanFromContext_Call) Run ¶
func (_c *Tracer_StartSpanFromContext_Call) Run(run func(ctx context.Context, name string)) *Tracer_StartSpanFromContext_Call
func (*Tracer_StartSpanFromContext_Call) RunAndReturn ¶
func (_c *Tracer_StartSpanFromContext_Call) RunAndReturn(run func(context.Context, string) (context.Context, tracing.Span)) *Tracer_StartSpanFromContext_Call
type Tracer_StartSpan_Call ¶
Tracer_StartSpan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartSpan'
func (*Tracer_StartSpan_Call) Return ¶
func (_c *Tracer_StartSpan_Call) Return(_a0 context.Context, _a1 tracing.Span) *Tracer_StartSpan_Call
func (*Tracer_StartSpan_Call) Run ¶
func (_c *Tracer_StartSpan_Call) Run(run func(name string)) *Tracer_StartSpan_Call
func (*Tracer_StartSpan_Call) RunAndReturn ¶
func (_c *Tracer_StartSpan_Call) RunAndReturn(run func(string) (context.Context, tracing.Span)) *Tracer_StartSpan_Call
type Tracer_StartSubSpan_Call ¶
Tracer_StartSubSpan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartSubSpan'
func (*Tracer_StartSubSpan_Call) Return ¶
func (_c *Tracer_StartSubSpan_Call) Return(_a0 context.Context, _a1 tracing.Span) *Tracer_StartSubSpan_Call
func (*Tracer_StartSubSpan_Call) Run ¶
func (_c *Tracer_StartSubSpan_Call) Run(run func(ctx context.Context, name string)) *Tracer_StartSubSpan_Call
func (*Tracer_StartSubSpan_Call) RunAndReturn ¶
func (_c *Tracer_StartSubSpan_Call) RunAndReturn(run func(context.Context, string) (context.Context, tracing.Span)) *Tracer_StartSubSpan_Call