Documentation ¶
Overview ¶
Package mockgen is a generated GoMock package.
Package mockgen is a generated GoMock package.
Package mockgen is a generated GoMock package.
Package mockgen is a generated GoMock package.
Package mockgen is a generated GoMock package.
Index ¶
- type MockCollection
- func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
- func (m *MockCollection) Find(ctx context.Context, filter interface{}) (db.Cursor, error)
- func (m *MockCollection) FindOne(ctx context.Context, filter, v interface{}) error
- func (m *MockCollection) InsertOne(ctx context.Context, document interface{}) (interface{}, error)
- func (m *MockCollection) UpdateOne(ctx context.Context, filter, update interface{}) (int64, error)
- type MockCollectionMockRecorder
- func (mr *MockCollectionMockRecorder) Find(ctx, filter interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) FindOne(ctx, filter, v interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) InsertOne(ctx, document interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateOne(ctx, filter, update interface{}) *gomock.Call
- type MockCursor
- type MockCursorMockRecorder
- type MockLogRusEntry
- func (m *MockLogRusEntry) Data() logrus.Fields
- func (m *MockLogRusEntry) EXPECT() *MockLogRusEntryMockRecorder
- func (m *MockLogRusEntry) Error(args ...interface{})
- func (m *MockLogRusEntry) Fatal(args ...interface{})
- func (m *MockLogRusEntry) Info(args ...interface{})
- func (m *MockLogRusEntry) Warn(args ...interface{})
- func (m *MockLogRusEntry) WithField(key string, value interface{}) log.LogRusEntry
- type MockLogRusEntryMockRecorder
- func (mr *MockLogRusEntryMockRecorder) Data() *gomock.Call
- func (mr *MockLogRusEntryMockRecorder) Error(args ...interface{}) *gomock.Call
- func (mr *MockLogRusEntryMockRecorder) Fatal(args ...interface{}) *gomock.Call
- func (mr *MockLogRusEntryMockRecorder) Info(args ...interface{}) *gomock.Call
- func (mr *MockLogRusEntryMockRecorder) Warn(args ...interface{}) *gomock.Call
- func (mr *MockLogRusEntryMockRecorder) WithField(key, value interface{}) *gomock.Call
- type MockRabbitChannel
- type MockRabbitChannelMockRecorder
- type MockRestError
- type MockRestErrorMockRecorder
- type MockValidation
- type MockValidationMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCollection ¶
type MockCollection struct {
// contains filtered or unexported fields
}
MockCollection is a mock of Collection interface.
func NewMockCollection ¶
func NewMockCollection(ctrl *gomock.Controller) *MockCollection
NewMockCollection creates a new mock instance.
func (*MockCollection) EXPECT ¶
func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCollection) FindOne ¶
func (m *MockCollection) FindOne(ctx context.Context, filter, v interface{}) error
FindOne mocks base method.
type MockCollectionMockRecorder ¶
type MockCollectionMockRecorder struct {
// contains filtered or unexported fields
}
MockCollectionMockRecorder is the mock recorder for MockCollection.
func (*MockCollectionMockRecorder) Find ¶
func (mr *MockCollectionMockRecorder) Find(ctx, filter interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockCollectionMockRecorder) FindOne ¶
func (mr *MockCollectionMockRecorder) FindOne(ctx, filter, v interface{}) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockCollectionMockRecorder) InsertOne ¶
func (mr *MockCollectionMockRecorder) InsertOne(ctx, document interface{}) *gomock.Call
InsertOne indicates an expected call of InsertOne.
func (*MockCollectionMockRecorder) UpdateOne ¶
func (mr *MockCollectionMockRecorder) UpdateOne(ctx, filter, update interface{}) *gomock.Call
UpdateOne indicates an expected call of UpdateOne.
type MockCursor ¶
type MockCursor struct {
// contains filtered or unexported fields
}
MockCursor is a mock of Cursor interface.
func NewMockCursor ¶
func NewMockCursor(ctrl *gomock.Controller) *MockCursor
NewMockCursor creates a new mock instance.
func (*MockCursor) Close ¶
func (m *MockCursor) Close(ctx context.Context) error
Close mocks base method.
func (*MockCursor) Decode ¶
func (m *MockCursor) Decode(val interface{}) error
Decode mocks base method.
func (*MockCursor) EXPECT ¶
func (m *MockCursor) EXPECT() *MockCursorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCursorMockRecorder ¶
type MockCursorMockRecorder struct {
// contains filtered or unexported fields
}
MockCursorMockRecorder is the mock recorder for MockCursor.
func (*MockCursorMockRecorder) Close ¶
func (mr *MockCursorMockRecorder) Close(ctx interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockCursorMockRecorder) Decode ¶
func (mr *MockCursorMockRecorder) Decode(val interface{}) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockCursorMockRecorder) Next ¶
func (mr *MockCursorMockRecorder) Next(ctx interface{}) *gomock.Call
Next indicates an expected call of Next.
type MockLogRusEntry ¶
type MockLogRusEntry struct {
// contains filtered or unexported fields
}
MockLogRusEntry is a mock of LogRusEntry interface.
func NewMockLogRusEntry ¶
func NewMockLogRusEntry(ctrl *gomock.Controller) *MockLogRusEntry
NewMockLogRusEntry creates a new mock instance.
func (*MockLogRusEntry) Data ¶
func (m *MockLogRusEntry) Data() logrus.Fields
Data mocks base method.
func (*MockLogRusEntry) EXPECT ¶
func (m *MockLogRusEntry) EXPECT() *MockLogRusEntryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogRusEntry) Error ¶
func (m *MockLogRusEntry) Error(args ...interface{})
Error mocks base method.
func (*MockLogRusEntry) Fatal ¶
func (m *MockLogRusEntry) Fatal(args ...interface{})
Fatal mocks base method.
func (*MockLogRusEntry) Info ¶
func (m *MockLogRusEntry) Info(args ...interface{})
Info mocks base method.
func (*MockLogRusEntry) Warn ¶
func (m *MockLogRusEntry) Warn(args ...interface{})
Warn mocks base method.
func (*MockLogRusEntry) WithField ¶
func (m *MockLogRusEntry) WithField(key string, value interface{}) log.LogRusEntry
WithField mocks base method.
type MockLogRusEntryMockRecorder ¶
type MockLogRusEntryMockRecorder struct {
// contains filtered or unexported fields
}
MockLogRusEntryMockRecorder is the mock recorder for MockLogRusEntry.
func (*MockLogRusEntryMockRecorder) Data ¶
func (mr *MockLogRusEntryMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data.
func (*MockLogRusEntryMockRecorder) Error ¶
func (mr *MockLogRusEntryMockRecorder) Error(args ...interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockLogRusEntryMockRecorder) Fatal ¶
func (mr *MockLogRusEntryMockRecorder) Fatal(args ...interface{}) *gomock.Call
Fatal indicates an expected call of Fatal.
func (*MockLogRusEntryMockRecorder) Info ¶
func (mr *MockLogRusEntryMockRecorder) Info(args ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockLogRusEntryMockRecorder) Warn ¶
func (mr *MockLogRusEntryMockRecorder) Warn(args ...interface{}) *gomock.Call
Warn indicates an expected call of Warn.
func (*MockLogRusEntryMockRecorder) WithField ¶
func (mr *MockLogRusEntryMockRecorder) WithField(key, value interface{}) *gomock.Call
WithField indicates an expected call of WithField.
type MockRabbitChannel ¶
type MockRabbitChannel struct {
// contains filtered or unexported fields
}
MockRabbitChannel is a mock of RabbitChannel interface.
func NewMockRabbitChannel ¶
func NewMockRabbitChannel(ctrl *gomock.Controller) *MockRabbitChannel
NewMockRabbitChannel creates a new mock instance.
func (*MockRabbitChannel) EXPECT ¶
func (m *MockRabbitChannel) EXPECT() *MockRabbitChannelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRabbitChannel) ExchangeDeclare ¶
func (m *MockRabbitChannel) ExchangeDeclare(name, chType string) error
ExchangeDeclare mocks base method.
type MockRabbitChannelMockRecorder ¶
type MockRabbitChannelMockRecorder struct {
// contains filtered or unexported fields
}
MockRabbitChannelMockRecorder is the mock recorder for MockRabbitChannel.
func (*MockRabbitChannelMockRecorder) ExchangeDeclare ¶
func (mr *MockRabbitChannelMockRecorder) ExchangeDeclare(name, chType interface{}) *gomock.Call
ExchangeDeclare indicates an expected call of ExchangeDeclare.
func (*MockRabbitChannelMockRecorder) Publish ¶
func (mr *MockRabbitChannelMockRecorder) Publish(exchange, routingKey, body interface{}) *gomock.Call
Publish indicates an expected call of Publish.
type MockRestError ¶
type MockRestError struct {
// contains filtered or unexported fields
}
MockRestError is a mock of RestError interface.
func NewMockRestError ¶
func NewMockRestError(ctrl *gomock.Controller) *MockRestError
NewMockRestError creates a new mock instance.
func (*MockRestError) EXPECT ¶
func (m *MockRestError) EXPECT() *MockRestErrorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRestErrorMockRecorder ¶
type MockRestErrorMockRecorder struct {
// contains filtered or unexported fields
}
MockRestErrorMockRecorder is the mock recorder for MockRestError.
func (*MockRestErrorMockRecorder) Error ¶
func (mr *MockRestErrorMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockRestErrorMockRecorder) Status ¶
func (mr *MockRestErrorMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
type MockValidation ¶
type MockValidation struct {
// contains filtered or unexported fields
}
MockValidation is a mock of Validation interface.
func NewMockValidation ¶
func NewMockValidation(ctrl *gomock.Controller) *MockValidation
NewMockValidation creates a new mock instance.
func (*MockValidation) Add ¶
func (m *MockValidation) Add(path, message string) errs.Validation
Add mocks base method.
func (*MockValidation) EXPECT ¶
func (m *MockValidation) EXPECT() *MockValidationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockValidationMockRecorder ¶
type MockValidationMockRecorder struct {
// contains filtered or unexported fields
}
MockValidationMockRecorder is the mock recorder for MockValidation.
func (*MockValidationMockRecorder) Add ¶
func (mr *MockValidationMockRecorder) Add(path, message interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockValidationMockRecorder) Error ¶
func (mr *MockValidationMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.