mockgen

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2024 License: GPL-3.0 Imports: 10 Imported by: 2

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCollection) Find

func (m *MockCollection) Find(ctx context.Context, filter interface{}) (db.Cursor, error)

Find mocks base method.

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.

func (*MockCollection) UpdateOne

func (m *MockCollection) UpdateOne(ctx context.Context, filter, update interface{}) (int64, error)

UpdateOne 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.

func (*MockCursor) Next

func (m *MockCursor) Next(ctx context.Context) bool

Next mocks base method.

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) Do added in v0.0.11

func (m *MockHTTPClient) Do(req *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockHTTPClient) EXPECT added in v0.0.11

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

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRedisClient) Get added in v0.0.6

func (m *MockRedisClient) Get(key string) (string, error)

Get mocks base method.

func (*MockRedisClient) Set added in v0.0.6

func (m *MockRedisClient) Set(key string, value interface{}, expiration time.Duration) (string, error)

Set mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRestError) Error

func (m *MockRestError) Error() string

Error mocks base method.

func (*MockRestError) Status

func (m *MockRestError) Status() int

Status mocks base method.

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

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.

func (*MockSecurityRepository) GetToken added in v0.0.7

func (m *MockSecurityRepository) GetToken(token string) (*security.User, bool)

GetToken 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

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.

func (*MockSecurityService) Validate added in v0.0.7

func (m *MockSecurityService) Validate(token string) (*security.User, error)

Validate 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidation) Error

func (m *MockValidation) Error() string

Error mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL