Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockErrorReporter
- type MockErrorReporterMockRecorder
- type MockInstrumentor
- func (m *MockInstrumentor) EXPECT() *MockInstrumentorMockRecorder
- func (m *MockInstrumentor) Finish(span observability.Span)
- func (m *MockInstrumentor) NewTransaction(ctx context.Context, txName, operation string) observability.Span
- func (m *MockInstrumentor) StartSpan(ctx context.Context, operation string) observability.Span
- type MockInstrumentorMockRecorder
- type MockSpan
- func (m *MockSpan) Context() context.Context
- func (m *MockSpan) EXPECT() *MockSpanMockRecorder
- func (m *MockSpan) Finish()
- func (m *MockSpan) GetDurationMs() int64
- func (m *MockSpan) GetOperation() string
- func (m *MockSpan) GetTraceId() string
- func (m *MockSpan) GetTxName() string
- func (m *MockSpan) SetTransactionName(name string)
- func (m *MockSpan) StartSpan(ctx context.Context)
- type MockSpanMockRecorder
- func (mr *MockSpanMockRecorder) Context() *gomock.Call
- func (mr *MockSpanMockRecorder) Finish() *gomock.Call
- func (mr *MockSpanMockRecorder) GetDurationMs() *gomock.Call
- func (mr *MockSpanMockRecorder) GetOperation() *gomock.Call
- func (mr *MockSpanMockRecorder) GetTraceId() *gomock.Call
- func (mr *MockSpanMockRecorder) GetTxName() *gomock.Call
- func (mr *MockSpanMockRecorder) SetTransactionName(name interface{}) *gomock.Call
- func (mr *MockSpanMockRecorder) StartSpan(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockErrorReporter ¶ added in v0.4.0
type MockErrorReporter struct {
// contains filtered or unexported fields
}
MockErrorReporter is a mock of ErrorReporter interface.
func NewMockErrorReporter ¶ added in v0.4.0
func NewMockErrorReporter(ctrl *gomock.Controller) *MockErrorReporter
NewMockErrorReporter creates a new mock instance.
func (*MockErrorReporter) CaptureError ¶ added in v0.4.0
func (m *MockErrorReporter) CaptureError(err error, options observability.ErrorReporterOptions) bool
CaptureError mocks base method.
func (*MockErrorReporter) EXPECT ¶ added in v0.4.0
func (m *MockErrorReporter) EXPECT() *MockErrorReporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockErrorReporter) FlushErrorReporting ¶ added in v0.4.0
func (m *MockErrorReporter) FlushErrorReporting()
FlushErrorReporting mocks base method.
type MockErrorReporterMockRecorder ¶ added in v0.4.0
type MockErrorReporterMockRecorder struct {
// contains filtered or unexported fields
}
MockErrorReporterMockRecorder is the mock recorder for MockErrorReporter.
func (*MockErrorReporterMockRecorder) CaptureError ¶ added in v0.4.0
func (mr *MockErrorReporterMockRecorder) CaptureError(err, options interface{}) *gomock.Call
CaptureError indicates an expected call of CaptureError.
func (*MockErrorReporterMockRecorder) FlushErrorReporting ¶ added in v0.4.0
func (mr *MockErrorReporterMockRecorder) FlushErrorReporting() *gomock.Call
FlushErrorReporting indicates an expected call of FlushErrorReporting.
type MockInstrumentor ¶
type MockInstrumentor struct {
// contains filtered or unexported fields
}
MockInstrumentor is a mock of Instrumentor interface.
func NewMockInstrumentor ¶
func NewMockInstrumentor(ctrl *gomock.Controller) *MockInstrumentor
NewMockInstrumentor creates a new mock instance.
func (*MockInstrumentor) EXPECT ¶
func (m *MockInstrumentor) EXPECT() *MockInstrumentorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstrumentor) Finish ¶
func (m *MockInstrumentor) Finish(span observability.Span)
Finish mocks base method.
func (*MockInstrumentor) NewTransaction ¶
func (m *MockInstrumentor) NewTransaction(ctx context.Context, txName, operation string) observability.Span
NewTransaction mocks base method.
func (*MockInstrumentor) StartSpan ¶
func (m *MockInstrumentor) StartSpan(ctx context.Context, operation string) observability.Span
StartSpan mocks base method.
type MockInstrumentorMockRecorder ¶
type MockInstrumentorMockRecorder struct {
// contains filtered or unexported fields
}
MockInstrumentorMockRecorder is the mock recorder for MockInstrumentor.
func (*MockInstrumentorMockRecorder) Finish ¶
func (mr *MockInstrumentorMockRecorder) Finish(span interface{}) *gomock.Call
Finish indicates an expected call of Finish.
func (*MockInstrumentorMockRecorder) NewTransaction ¶
func (mr *MockInstrumentorMockRecorder) NewTransaction(ctx, txName, operation interface{}) *gomock.Call
NewTransaction indicates an expected call of NewTransaction.
func (*MockInstrumentorMockRecorder) StartSpan ¶
func (mr *MockInstrumentorMockRecorder) StartSpan(ctx, operation interface{}) *gomock.Call
StartSpan indicates an expected call of StartSpan.
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) EXPECT ¶
func (m *MockSpan) EXPECT() *MockSpanMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSpan) GetDurationMs ¶
GetDurationMs mocks base method.
func (*MockSpan) GetOperation ¶
GetOperation mocks base method.
func (*MockSpan) SetTransactionName ¶
SetTransactionName mocks base method.
type MockSpanMockRecorder ¶
type MockSpanMockRecorder struct {
// contains filtered or unexported fields
}
MockSpanMockRecorder is the mock recorder for MockSpan.
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) GetDurationMs ¶
func (mr *MockSpanMockRecorder) GetDurationMs() *gomock.Call
GetDurationMs indicates an expected call of GetDurationMs.
func (*MockSpanMockRecorder) GetOperation ¶
func (mr *MockSpanMockRecorder) GetOperation() *gomock.Call
GetOperation indicates an expected call of GetOperation.
func (*MockSpanMockRecorder) GetTraceId ¶
func (mr *MockSpanMockRecorder) GetTraceId() *gomock.Call
GetTraceId indicates an expected call of GetTraceId.
func (*MockSpanMockRecorder) GetTxName ¶
func (mr *MockSpanMockRecorder) GetTxName() *gomock.Call
GetTxName indicates an expected call of GetTxName.
func (*MockSpanMockRecorder) SetTransactionName ¶
func (mr *MockSpanMockRecorder) SetTransactionName(name interface{}) *gomock.Call
SetTransactionName indicates an expected call of SetTransactionName.
func (*MockSpanMockRecorder) StartSpan ¶
func (mr *MockSpanMockRecorder) StartSpan(ctx interface{}) *gomock.Call
StartSpan indicates an expected call of StartSpan.