Documentation ¶
Overview ¶
Package mocklogz is a generated GoMock package.
Index ¶
- type MockContextLogs
- func (m *MockContextLogs) AddMetadata(k string, v interface{})
- func (m *MockContextLogs) Debug(format string, options ...logz.Option)
- func (m *MockContextLogs) EXPECT() *MockContextLogsMockRecorder
- func (m *MockContextLogs) Error(err error)
- func (m *MockContextLogs) Info(format string, options ...logz.Option)
- func (m *MockContextLogs) SetUser(user *logz.User)
- func (m *MockContextLogs) TraceHTTPRequestServer(req *http.Request, reqBody []byte) (context.Context, func())
- func (m *MockContextLogs) TraceHTTPRequestServerSimple(req *sentry.Request) (context.Context, func())
- func (m *MockContextLogs) TraceSpan(op, desc string) (context.Context, func())
- func (m *MockContextLogs) Warning(err error)
- type MockContextLogsMockRecorder
- func (mr *MockContextLogsMockRecorder) AddMetadata(k, v interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) Debug(format interface{}, options ...interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) Error(err interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) Info(format interface{}, options ...interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) SetUser(user interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) TraceHTTPRequestServer(req, reqBody interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) TraceHTTPRequestServerSimple(req interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) TraceSpan(op, desc interface{}) *gomock.Call
- func (mr *MockContextLogsMockRecorder) Warning(err interface{}) *gomock.Call
- type MockLogs
- func (m *MockLogs) AddMetadata(ctx context.Context, k string, v interface{})
- func (m *MockLogs) Debug(ctx context.Context, skipCallers int, format string, options ...logz.Option)
- func (m *MockLogs) EXPECT() *MockLogsMockRecorder
- func (m *MockLogs) Error(ctx context.Context, err error)
- func (m *MockLogs) Info(ctx context.Context, skipCallers int, format string, options ...logz.Option)
- func (m *MockLogs) SetUser(ctx context.Context, user *logz.User)
- func (m *MockLogs) TraceHTTPRequestServer(ctx context.Context, req *http.Request, reqBody []byte) (context.Context, func())
- func (m *MockLogs) TraceHTTPRequestServerSimple(ctx context.Context, req *sentry.Request) (context.Context, func())
- func (m *MockLogs) TraceSpan(ctx context.Context, op, desc string) (context.Context, func())
- func (m *MockLogs) Warning(ctx context.Context, err error)
- type MockLogsMockRecorder
- func (mr *MockLogsMockRecorder) AddMetadata(ctx, k, v interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) Debug(ctx, skipCallers, format interface{}, options ...interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) Error(ctx, err interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) Info(ctx, skipCallers, format interface{}, options ...interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) SetUser(ctx, user interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) TraceHTTPRequestServer(ctx, req, reqBody interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) TraceHTTPRequestServerSimple(ctx, req interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) TraceSpan(ctx, op, desc interface{}) *gomock.Call
- func (mr *MockLogsMockRecorder) Warning(ctx, err interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContextLogs ¶
type MockContextLogs struct {
// contains filtered or unexported fields
}
MockContextLogs is a mock of ContextLogs interface.
func NewMockContextLogs ¶
func NewMockContextLogs(ctrl *gomock.Controller) *MockContextLogs
NewMockContextLogs creates a new mock instance.
func (*MockContextLogs) AddMetadata ¶
func (m *MockContextLogs) AddMetadata(k string, v interface{})
AddMetadata mocks base method.
func (*MockContextLogs) Debug ¶
func (m *MockContextLogs) Debug(format string, options ...logz.Option)
Debug mocks base method.
func (*MockContextLogs) EXPECT ¶
func (m *MockContextLogs) EXPECT() *MockContextLogsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContextLogs) Info ¶
func (m *MockContextLogs) Info(format string, options ...logz.Option)
Info mocks base method.
func (*MockContextLogs) SetUser ¶
func (m *MockContextLogs) SetUser(user *logz.User)
SetUser mocks base method.
func (*MockContextLogs) TraceHTTPRequestServer ¶
func (m *MockContextLogs) TraceHTTPRequestServer(req *http.Request, reqBody []byte) (context.Context, func())
TraceHTTPRequestServer mocks base method.
func (*MockContextLogs) TraceHTTPRequestServerSimple ¶ added in v1.3.0
func (m *MockContextLogs) TraceHTTPRequestServerSimple(req *sentry.Request) (context.Context, func())
TraceHTTPRequestServerSimple mocks base method.
func (*MockContextLogs) TraceSpan ¶ added in v1.2.0
func (m *MockContextLogs) TraceSpan(op, desc string) (context.Context, func())
TraceSpan mocks base method.
func (*MockContextLogs) Warning ¶
func (m *MockContextLogs) Warning(err error)
Warning mocks base method.
type MockContextLogsMockRecorder ¶
type MockContextLogsMockRecorder struct {
// contains filtered or unexported fields
}
MockContextLogsMockRecorder is the mock recorder for MockContextLogs.
func (*MockContextLogsMockRecorder) AddMetadata ¶
func (mr *MockContextLogsMockRecorder) AddMetadata(k, v interface{}) *gomock.Call
AddMetadata indicates an expected call of AddMetadata.
func (*MockContextLogsMockRecorder) Debug ¶
func (mr *MockContextLogsMockRecorder) Debug(format interface{}, options ...interface{}) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockContextLogsMockRecorder) Error ¶
func (mr *MockContextLogsMockRecorder) Error(err interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockContextLogsMockRecorder) Info ¶
func (mr *MockContextLogsMockRecorder) Info(format interface{}, options ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockContextLogsMockRecorder) SetUser ¶
func (mr *MockContextLogsMockRecorder) SetUser(user interface{}) *gomock.Call
SetUser indicates an expected call of SetUser.
func (*MockContextLogsMockRecorder) TraceHTTPRequestServer ¶
func (mr *MockContextLogsMockRecorder) TraceHTTPRequestServer(req, reqBody interface{}) *gomock.Call
TraceHTTPRequestServer indicates an expected call of TraceHTTPRequestServer.
func (*MockContextLogsMockRecorder) TraceHTTPRequestServerSimple ¶ added in v1.3.0
func (mr *MockContextLogsMockRecorder) TraceHTTPRequestServerSimple(req interface{}) *gomock.Call
TraceHTTPRequestServerSimple indicates an expected call of TraceHTTPRequestServerSimple.
func (*MockContextLogsMockRecorder) TraceSpan ¶ added in v1.2.0
func (mr *MockContextLogsMockRecorder) TraceSpan(op, desc interface{}) *gomock.Call
TraceSpan indicates an expected call of TraceSpan.
func (*MockContextLogsMockRecorder) Warning ¶
func (mr *MockContextLogsMockRecorder) Warning(err interface{}) *gomock.Call
Warning indicates an expected call of Warning.
type MockLogs ¶
type MockLogs struct {
// contains filtered or unexported fields
}
MockLogs is a mock of Logs interface.
func NewMockLogs ¶
func NewMockLogs(ctrl *gomock.Controller) *MockLogs
NewMockLogs creates a new mock instance.
func (*MockLogs) AddMetadata ¶
AddMetadata mocks base method.
func (*MockLogs) Debug ¶
func (m *MockLogs) Debug(ctx context.Context, skipCallers int, format string, options ...logz.Option)
Debug mocks base method.
func (*MockLogs) EXPECT ¶
func (m *MockLogs) EXPECT() *MockLogsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogs) Info ¶
func (m *MockLogs) Info(ctx context.Context, skipCallers int, format string, options ...logz.Option)
Info mocks base method.
func (*MockLogs) TraceHTTPRequestServer ¶
func (m *MockLogs) TraceHTTPRequestServer(ctx context.Context, req *http.Request, reqBody []byte) (context.Context, func())
TraceHTTPRequestServer mocks base method.
func (*MockLogs) TraceHTTPRequestServerSimple ¶ added in v1.3.0
func (m *MockLogs) TraceHTTPRequestServerSimple(ctx context.Context, req *sentry.Request) (context.Context, func())
TraceHTTPRequestServerSimple mocks base method.
type MockLogsMockRecorder ¶
type MockLogsMockRecorder struct {
// contains filtered or unexported fields
}
MockLogsMockRecorder is the mock recorder for MockLogs.
func (*MockLogsMockRecorder) AddMetadata ¶
func (mr *MockLogsMockRecorder) AddMetadata(ctx, k, v interface{}) *gomock.Call
AddMetadata indicates an expected call of AddMetadata.
func (*MockLogsMockRecorder) Debug ¶
func (mr *MockLogsMockRecorder) Debug(ctx, skipCallers, format interface{}, options ...interface{}) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLogsMockRecorder) Error ¶
func (mr *MockLogsMockRecorder) Error(ctx, err interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockLogsMockRecorder) Info ¶
func (mr *MockLogsMockRecorder) Info(ctx, skipCallers, format interface{}, options ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockLogsMockRecorder) SetUser ¶
func (mr *MockLogsMockRecorder) SetUser(ctx, user interface{}) *gomock.Call
SetUser indicates an expected call of SetUser.
func (*MockLogsMockRecorder) TraceHTTPRequestServer ¶
func (mr *MockLogsMockRecorder) TraceHTTPRequestServer(ctx, req, reqBody interface{}) *gomock.Call
TraceHTTPRequestServer indicates an expected call of TraceHTTPRequestServer.
func (*MockLogsMockRecorder) TraceHTTPRequestServerSimple ¶ added in v1.3.0
func (mr *MockLogsMockRecorder) TraceHTTPRequestServerSimple(ctx, req interface{}) *gomock.Call
TraceHTTPRequestServerSimple indicates an expected call of TraceHTTPRequestServerSimple.
func (*MockLogsMockRecorder) TraceSpan ¶ added in v1.2.0
func (mr *MockLogsMockRecorder) TraceSpan(ctx, op, desc interface{}) *gomock.Call
TraceSpan indicates an expected call of TraceSpan.
func (*MockLogsMockRecorder) Warning ¶
func (mr *MockLogsMockRecorder) Warning(ctx, err interface{}) *gomock.Call
Warning indicates an expected call of Warning.