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.
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) ReplaceOne(ctx context.Context, filter, replacement interface{}) (int64, 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) ReplaceOne(ctx, filter, replacement interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateOne(ctx, filter, update interface{}) *gomock.Call
- type MockCursor
- type MockCursorMockRecorder
- type MockHTTPClient
- type MockHTTPClientMockRecorder
- type MockLogRusEntry
- func (m *MockLogRusEntry) CorrelationId() string
- 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) CorrelationId() *gomock.Call
- 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 MockRedisClient
- type MockRedisClientMockRecorder
- type MockRestError
- type MockRestErrorMockRecorder
- type MockSecurityRepository
- func (m *MockSecurityRepository) CleanToken(token string)
- func (m *MockSecurityRepository) EXPECT() *MockSecurityRepositoryMockRecorder
- func (m *MockSecurityRepository) GetRemoteToken(token string) (*security.User, error)
- func (m *MockSecurityRepository) GetToken(token string) (*security.User, bool)
- type MockSecurityRepositoryMockRecorder
- type MockSecurityService
- type MockSecurityServiceMockRecorder
- 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.
func (*MockCollection) InsertOne ¶
func (m *MockCollection) InsertOne(ctx context.Context, document interface{}) (interface{}, error)
InsertOne mocks base method.
func (*MockCollection) ReplaceOne ¶ added in v0.0.19
func (m *MockCollection) ReplaceOne(ctx context.Context, filter, replacement interface{}) (int64, error)
ReplaceOne 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) ReplaceOne ¶ added in v0.0.19
func (mr *MockCollectionMockRecorder) ReplaceOne(ctx, filter, replacement interface{}) *gomock.Call
ReplaceOne indicates an expected call of ReplaceOne.
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 MockHTTPClient ¶ added in v0.0.11
type MockHTTPClient struct {
// contains filtered or unexported fields
}
MockHTTPClient is a mock of HTTPClient interface.
func NewMockHTTPClient ¶ added in v0.0.11
func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient
NewMockHTTPClient creates a new mock instance.
func (*MockHTTPClient) EXPECT ¶ added in v0.0.11
func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHTTPClientMockRecorder ¶ added in v0.0.11
type MockHTTPClientMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.
func (*MockHTTPClientMockRecorder) Do ¶ added in v0.0.11
func (mr *MockHTTPClientMockRecorder) Do(req interface{}) *gomock.Call
Do indicates an expected call of Do.
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) CorrelationId ¶ added in v0.0.4
func (m *MockLogRusEntry) CorrelationId() string
CorrelationId mocks base method.
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) CorrelationId ¶ added in v0.0.4
func (mr *MockLogRusEntryMockRecorder) CorrelationId() *gomock.Call
CorrelationId indicates an expected call of CorrelationId.
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 MockRedisClient ¶ added in v0.0.6
type MockRedisClient struct {
// contains filtered or unexported fields
}
MockRedisClient is a mock of RedisClient interface.
func NewMockRedisClient ¶ added in v0.0.6
func NewMockRedisClient(ctrl *gomock.Controller) *MockRedisClient
NewMockRedisClient creates a new mock instance.
func (*MockRedisClient) EXPECT ¶ added in v0.0.6
func (m *MockRedisClient) EXPECT() *MockRedisClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRedisClientMockRecorder ¶ added in v0.0.6
type MockRedisClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisClientMockRecorder is the mock recorder for MockRedisClient.
func (*MockRedisClientMockRecorder) Get ¶ added in v0.0.6
func (mr *MockRedisClientMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRedisClientMockRecorder) Set ¶ added in v0.0.6
func (mr *MockRedisClientMockRecorder) Set(key, value, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
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 MockSecurityRepository ¶ added in v0.0.7
type MockSecurityRepository struct {
// contains filtered or unexported fields
}
MockSecurityRepository is a mock of SecurityRepository interface.
func NewMockSecurityRepository ¶ added in v0.0.7
func NewMockSecurityRepository(ctrl *gomock.Controller) *MockSecurityRepository
NewMockSecurityRepository creates a new mock instance.
func (*MockSecurityRepository) CleanToken ¶ added in v0.0.7
func (m *MockSecurityRepository) CleanToken(token string)
CleanToken mocks base method.
func (*MockSecurityRepository) EXPECT ¶ added in v0.0.7
func (m *MockSecurityRepository) EXPECT() *MockSecurityRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecurityRepository) GetRemoteToken ¶ added in v0.0.7
func (m *MockSecurityRepository) GetRemoteToken(token string) (*security.User, error)
GetRemoteToken mocks base method.
type MockSecurityRepositoryMockRecorder ¶ added in v0.0.7
type MockSecurityRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockSecurityRepositoryMockRecorder is the mock recorder for MockSecurityRepository.
func (*MockSecurityRepositoryMockRecorder) CleanToken ¶ added in v0.0.7
func (mr *MockSecurityRepositoryMockRecorder) CleanToken(token interface{}) *gomock.Call
CleanToken indicates an expected call of CleanToken.
func (*MockSecurityRepositoryMockRecorder) GetRemoteToken ¶ added in v0.0.7
func (mr *MockSecurityRepositoryMockRecorder) GetRemoteToken(token interface{}) *gomock.Call
GetRemoteToken indicates an expected call of GetRemoteToken.
func (*MockSecurityRepositoryMockRecorder) GetToken ¶ added in v0.0.7
func (mr *MockSecurityRepositoryMockRecorder) GetToken(token interface{}) *gomock.Call
GetToken indicates an expected call of GetToken.
type MockSecurityService ¶ added in v0.0.7
type MockSecurityService struct {
// contains filtered or unexported fields
}
MockSecurityService is a mock of SecurityService interface.
func NewMockSecurityService ¶ added in v0.0.7
func NewMockSecurityService(ctrl *gomock.Controller) *MockSecurityService
NewMockSecurityService creates a new mock instance.
func (*MockSecurityService) EXPECT ¶ added in v0.0.7
func (m *MockSecurityService) EXPECT() *MockSecurityServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecurityService) Invalidate ¶ added in v0.0.7
func (m *MockSecurityService) Invalidate(token string)
Invalidate mocks base method.
type MockSecurityServiceMockRecorder ¶ added in v0.0.7
type MockSecurityServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSecurityServiceMockRecorder is the mock recorder for MockSecurityService.
func (*MockSecurityServiceMockRecorder) Invalidate ¶ added in v0.0.7
func (mr *MockSecurityServiceMockRecorder) Invalidate(token interface{}) *gomock.Call
Invalidate indicates an expected call of Invalidate.
func (*MockSecurityServiceMockRecorder) Validate ¶ added in v0.0.7
func (mr *MockSecurityServiceMockRecorder) Validate(token interface{}) *gomock.Call
Validate indicates an expected call of Validate.
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.