Documentation ¶
Overview ¶
Package mock_opentracing is a generated GoMock package.
Package mock_opentracing is a generated GoMock package.
Index ¶
- type MockSpan
- func (m *MockSpan) BaggageItem(restrictedKey string) string
- func (m *MockSpan) Context() opentracing.SpanContext
- func (m *MockSpan) EXPECT() *MockSpanMockRecorder
- func (m *MockSpan) Finish()
- func (m *MockSpan) FinishWithOptions(opts opentracing.FinishOptions)
- func (m *MockSpan) Log(data opentracing.LogData)
- func (m *MockSpan) LogEvent(event string)
- func (m *MockSpan) LogEventWithPayload(event string, payload interface{})
- func (m *MockSpan) LogFields(fields ...log.Field)
- func (m *MockSpan) LogKV(alternatingKeyValues ...interface{})
- func (m *MockSpan) SetBaggageItem(restrictedKey, value string) opentracing.Span
- func (m *MockSpan) SetOperationName(operationName string) opentracing.Span
- func (m *MockSpan) SetTag(key string, value interface{}) opentracing.Span
- func (m *MockSpan) Tracer() opentracing.Tracer
- type MockSpanContext
- type MockSpanContextMockRecorder
- type MockSpanMockRecorder
- func (mr *MockSpanMockRecorder) BaggageItem(restrictedKey interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) Context() *gomock.Call
- func (mr *MockSpanMockRecorder) Finish() *gomock.Call
- func (mr *MockSpanMockRecorder) FinishWithOptions(opts interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) Log(data interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) LogEvent(event interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) LogEventWithPayload(event, payload interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) LogFields(fields ...interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) LogKV(alternatingKeyValues ...interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) SetBaggageItem(restrictedKey, value interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) SetOperationName(operationName interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) SetTag(key, value interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) Tracer() *gomock.Call
- type MockStartSpanOption
- type MockStartSpanOptionMockRecorder
- type MockTracer
- func (m *MockTracer) EXPECT() *MockTracerMockRecorder
- func (m *MockTracer) Extract(format, carrier interface{}) (opentracing.SpanContext, error)
- func (m *MockTracer) Inject(sm opentracing.SpanContext, format, carrier interface{}) error
- func (m *MockTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
- type MockTracerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSpan ¶
type MockSpan struct {
// contains filtered or unexported fields
}
MockSpan is a mock of Span interface
func NewMockSpan ¶
func NewMockSpan(ctrl *gomock.Controller) *MockSpan
NewMockSpan creates a new mock instance
func (*MockSpan) BaggageItem ¶
BaggageItem mocks base method
func (*MockSpan) Context ¶
func (m *MockSpan) Context() opentracing.SpanContext
Context mocks base method
func (*MockSpan) EXPECT ¶
func (m *MockSpan) EXPECT() *MockSpanMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSpan) FinishWithOptions ¶
func (m *MockSpan) FinishWithOptions(opts opentracing.FinishOptions)
FinishWithOptions mocks base method
func (*MockSpan) LogEventWithPayload ¶
LogEventWithPayload mocks base method
func (*MockSpan) LogKV ¶
func (m *MockSpan) LogKV(alternatingKeyValues ...interface{})
LogKV mocks base method
func (*MockSpan) SetBaggageItem ¶
func (m *MockSpan) SetBaggageItem(restrictedKey, value string) opentracing.Span
SetBaggageItem mocks base method
func (*MockSpan) SetOperationName ¶
func (m *MockSpan) SetOperationName(operationName string) opentracing.Span
SetOperationName mocks base method
type MockSpanContext ¶
type MockSpanContext struct {
// contains filtered or unexported fields
}
MockSpanContext is a mock of SpanContext interface
func NewMockSpanContext ¶
func NewMockSpanContext(ctrl *gomock.Controller) *MockSpanContext
NewMockSpanContext creates a new mock instance
func (*MockSpanContext) EXPECT ¶
func (m *MockSpanContext) EXPECT() *MockSpanContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSpanContext) ForeachBaggageItem ¶
func (m *MockSpanContext) ForeachBaggageItem(handler func(string, string) bool)
ForeachBaggageItem mocks base method
type MockSpanContextMockRecorder ¶
type MockSpanContextMockRecorder struct {
// contains filtered or unexported fields
}
MockSpanContextMockRecorder is the mock recorder for MockSpanContext
func (*MockSpanContextMockRecorder) ForeachBaggageItem ¶
func (mr *MockSpanContextMockRecorder) ForeachBaggageItem(handler interface{}) *gomock.Call
ForeachBaggageItem indicates an expected call of ForeachBaggageItem
type MockSpanMockRecorder ¶
type MockSpanMockRecorder struct {
// contains filtered or unexported fields
}
MockSpanMockRecorder is the mock recorder for MockSpan
func (*MockSpanMockRecorder) BaggageItem ¶
func (mr *MockSpanMockRecorder) BaggageItem(restrictedKey interface{}) *gomock.Call
BaggageItem indicates an expected call of BaggageItem
func (*MockSpanMockRecorder) Context ¶
func (mr *MockSpanMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockSpanMockRecorder) Finish ¶
func (mr *MockSpanMockRecorder) Finish() *gomock.Call
Finish indicates an expected call of Finish
func (*MockSpanMockRecorder) FinishWithOptions ¶
func (mr *MockSpanMockRecorder) FinishWithOptions(opts interface{}) *gomock.Call
FinishWithOptions indicates an expected call of FinishWithOptions
func (*MockSpanMockRecorder) Log ¶
func (mr *MockSpanMockRecorder) Log(data interface{}) *gomock.Call
Log indicates an expected call of Log
func (*MockSpanMockRecorder) LogEvent ¶
func (mr *MockSpanMockRecorder) LogEvent(event interface{}) *gomock.Call
LogEvent indicates an expected call of LogEvent
func (*MockSpanMockRecorder) LogEventWithPayload ¶
func (mr *MockSpanMockRecorder) LogEventWithPayload(event, payload interface{}) *gomock.Call
LogEventWithPayload indicates an expected call of LogEventWithPayload
func (*MockSpanMockRecorder) LogFields ¶
func (mr *MockSpanMockRecorder) LogFields(fields ...interface{}) *gomock.Call
LogFields indicates an expected call of LogFields
func (*MockSpanMockRecorder) LogKV ¶
func (mr *MockSpanMockRecorder) LogKV(alternatingKeyValues ...interface{}) *gomock.Call
LogKV indicates an expected call of LogKV
func (*MockSpanMockRecorder) SetBaggageItem ¶
func (mr *MockSpanMockRecorder) SetBaggageItem(restrictedKey, value interface{}) *gomock.Call
SetBaggageItem indicates an expected call of SetBaggageItem
func (*MockSpanMockRecorder) SetOperationName ¶
func (mr *MockSpanMockRecorder) SetOperationName(operationName interface{}) *gomock.Call
SetOperationName indicates an expected call of SetOperationName
func (*MockSpanMockRecorder) SetTag ¶
func (mr *MockSpanMockRecorder) SetTag(key, value interface{}) *gomock.Call
SetTag indicates an expected call of SetTag
func (*MockSpanMockRecorder) Tracer ¶
func (mr *MockSpanMockRecorder) Tracer() *gomock.Call
Tracer indicates an expected call of Tracer
type MockStartSpanOption ¶
type MockStartSpanOption struct {
// contains filtered or unexported fields
}
MockStartSpanOption is a mock of StartSpanOption interface
func NewMockStartSpanOption ¶
func NewMockStartSpanOption(ctrl *gomock.Controller) *MockStartSpanOption
NewMockStartSpanOption creates a new mock instance
func (*MockStartSpanOption) Apply ¶
func (m *MockStartSpanOption) Apply(arg0 *opentracing.StartSpanOptions)
Apply mocks base method
func (*MockStartSpanOption) EXPECT ¶
func (m *MockStartSpanOption) EXPECT() *MockStartSpanOptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStartSpanOptionMockRecorder ¶
type MockStartSpanOptionMockRecorder struct {
// contains filtered or unexported fields
}
MockStartSpanOptionMockRecorder is the mock recorder for MockStartSpanOption
func (*MockStartSpanOptionMockRecorder) Apply ¶
func (mr *MockStartSpanOptionMockRecorder) Apply(arg0 interface{}) *gomock.Call
Apply indicates an expected call of Apply
type MockTracer ¶
type MockTracer struct {
// contains filtered or unexported fields
}
MockTracer is a mock of Tracer interface
func NewMockTracer ¶
func NewMockTracer(ctrl *gomock.Controller) *MockTracer
NewMockTracer creates a new mock instance
func (*MockTracer) EXPECT ¶
func (m *MockTracer) EXPECT() *MockTracerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTracer) Extract ¶
func (m *MockTracer) Extract(format, carrier interface{}) (opentracing.SpanContext, error)
Extract mocks base method
func (*MockTracer) Inject ¶
func (m *MockTracer) Inject(sm opentracing.SpanContext, format, carrier interface{}) error
Inject mocks base method
func (*MockTracer) StartSpan ¶
func (m *MockTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
StartSpan mocks base method
type MockTracerMockRecorder ¶
type MockTracerMockRecorder struct {
// contains filtered or unexported fields
}
MockTracerMockRecorder is the mock recorder for MockTracer
func (*MockTracerMockRecorder) Extract ¶
func (mr *MockTracerMockRecorder) Extract(format, carrier interface{}) *gomock.Call
Extract indicates an expected call of Extract
func (*MockTracerMockRecorder) Inject ¶
func (mr *MockTracerMockRecorder) Inject(sm, format, carrier interface{}) *gomock.Call
Inject indicates an expected call of Inject
func (*MockTracerMockRecorder) StartSpan ¶
func (mr *MockTracerMockRecorder) StartSpan(operationName interface{}, opts ...interface{}) *gomock.Call
StartSpan indicates an expected call of StartSpan