Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: repository.go
Generated by this command:
mockgen -source repository.go -destination mock/repository_mock.go -package mock
Package mock is a generated GoMock package.
Index ¶
- type MockAPIKeyRepository
- func (m *MockAPIKeyRepository) EXPECT() *MockAPIKeyRepositoryMockRecorder
- func (m *MockAPIKeyRepository) Get(ctx context.Context, value string) (*entity.APIKey, error)
- func (m *MockAPIKeyRepository) GetBlockedDuration(ctx context.Context, key string) (string, error)
- func (m *MockAPIKeyRepository) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)
- func (m *MockAPIKeyRepository) Save(ctx context.Context, key *entity.APIKey) (string, error)
- func (m *MockAPIKeyRepository) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error
- func (m *MockAPIKeyRepository) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error
- type MockAPIKeyRepositoryMockRecorder
- func (mr *MockAPIKeyRepositoryMockRecorder) Get(ctx, value any) *gomock.Call
- func (mr *MockAPIKeyRepositoryMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call
- func (mr *MockAPIKeyRepositoryMockRecorder) GetRequest(ctx, key any) *gomock.Call
- func (mr *MockAPIKeyRepositoryMockRecorder) Save(ctx, key any) *gomock.Call
- func (mr *MockAPIKeyRepositoryMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call
- func (mr *MockAPIKeyRepositoryMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call
- type MockIPRepository
- func (m *MockIPRepository) EXPECT() *MockIPRepositoryMockRecorder
- func (m *MockIPRepository) GetBlockedDuration(ctx context.Context, key string) (string, error)
- func (m *MockIPRepository) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)
- func (m *MockIPRepository) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error
- func (m *MockIPRepository) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error
- type MockIPRepositoryMockRecorder
- func (mr *MockIPRepositoryMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call
- func (mr *MockIPRepositoryMockRecorder) GetRequest(ctx, key any) *gomock.Call
- func (mr *MockIPRepositoryMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call
- func (mr *MockIPRepositoryMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call
- type MockcommonRepo
- func (m *MockcommonRepo) EXPECT() *MockcommonRepoMockRecorder
- func (m *MockcommonRepo) GetBlockedDuration(ctx context.Context, key string) (string, error)
- func (m *MockcommonRepo) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)
- func (m *MockcommonRepo) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error
- func (m *MockcommonRepo) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error
- type MockcommonRepoMockRecorder
- func (mr *MockcommonRepoMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call
- func (mr *MockcommonRepoMockRecorder) GetRequest(ctx, key any) *gomock.Call
- func (mr *MockcommonRepoMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call
- func (mr *MockcommonRepoMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIKeyRepository ¶
type MockAPIKeyRepository struct {
// contains filtered or unexported fields
}
MockAPIKeyRepository is a mock of APIKeyRepository interface.
func NewMockAPIKeyRepository ¶
func NewMockAPIKeyRepository(ctrl *gomock.Controller) *MockAPIKeyRepository
NewMockAPIKeyRepository creates a new mock instance.
func (*MockAPIKeyRepository) EXPECT ¶
func (m *MockAPIKeyRepository) EXPECT() *MockAPIKeyRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPIKeyRepository) GetBlockedDuration ¶
GetBlockedDuration mocks base method.
func (*MockAPIKeyRepository) GetRequest ¶
func (m *MockAPIKeyRepository) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)
GetRequest mocks base method.
func (*MockAPIKeyRepository) SaveBlockedDuration ¶
func (m *MockAPIKeyRepository) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error
SaveBlockedDuration mocks base method.
func (*MockAPIKeyRepository) UpsertRequest ¶
func (m *MockAPIKeyRepository) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error
UpsertRequest mocks base method.
type MockAPIKeyRepositoryMockRecorder ¶
type MockAPIKeyRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIKeyRepositoryMockRecorder is the mock recorder for MockAPIKeyRepository.
func (*MockAPIKeyRepositoryMockRecorder) Get ¶
func (mr *MockAPIKeyRepositoryMockRecorder) Get(ctx, value any) *gomock.Call
Get indicates an expected call of Get.
func (*MockAPIKeyRepositoryMockRecorder) GetBlockedDuration ¶
func (mr *MockAPIKeyRepositoryMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call
GetBlockedDuration indicates an expected call of GetBlockedDuration.
func (*MockAPIKeyRepositoryMockRecorder) GetRequest ¶
func (mr *MockAPIKeyRepositoryMockRecorder) GetRequest(ctx, key any) *gomock.Call
GetRequest indicates an expected call of GetRequest.
func (*MockAPIKeyRepositoryMockRecorder) Save ¶
func (mr *MockAPIKeyRepositoryMockRecorder) Save(ctx, key any) *gomock.Call
Save indicates an expected call of Save.
func (*MockAPIKeyRepositoryMockRecorder) SaveBlockedDuration ¶
func (mr *MockAPIKeyRepositoryMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call
SaveBlockedDuration indicates an expected call of SaveBlockedDuration.
func (*MockAPIKeyRepositoryMockRecorder) UpsertRequest ¶
func (mr *MockAPIKeyRepositoryMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call
UpsertRequest indicates an expected call of UpsertRequest.
type MockIPRepository ¶
type MockIPRepository struct {
// contains filtered or unexported fields
}
MockIPRepository is a mock of IPRepository interface.
func NewMockIPRepository ¶
func NewMockIPRepository(ctrl *gomock.Controller) *MockIPRepository
NewMockIPRepository creates a new mock instance.
func (*MockIPRepository) EXPECT ¶
func (m *MockIPRepository) EXPECT() *MockIPRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPRepository) GetBlockedDuration ¶
GetBlockedDuration mocks base method.
func (*MockIPRepository) GetRequest ¶
func (m *MockIPRepository) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)
GetRequest mocks base method.
func (*MockIPRepository) SaveBlockedDuration ¶
func (m *MockIPRepository) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error
SaveBlockedDuration mocks base method.
func (*MockIPRepository) UpsertRequest ¶
func (m *MockIPRepository) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error
UpsertRequest mocks base method.
type MockIPRepositoryMockRecorder ¶
type MockIPRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIPRepositoryMockRecorder is the mock recorder for MockIPRepository.
func (*MockIPRepositoryMockRecorder) GetBlockedDuration ¶
func (mr *MockIPRepositoryMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call
GetBlockedDuration indicates an expected call of GetBlockedDuration.
func (*MockIPRepositoryMockRecorder) GetRequest ¶
func (mr *MockIPRepositoryMockRecorder) GetRequest(ctx, key any) *gomock.Call
GetRequest indicates an expected call of GetRequest.
func (*MockIPRepositoryMockRecorder) SaveBlockedDuration ¶
func (mr *MockIPRepositoryMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call
SaveBlockedDuration indicates an expected call of SaveBlockedDuration.
func (*MockIPRepositoryMockRecorder) UpsertRequest ¶
func (mr *MockIPRepositoryMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call
UpsertRequest indicates an expected call of UpsertRequest.
type MockcommonRepo ¶
type MockcommonRepo struct {
// contains filtered or unexported fields
}
MockcommonRepo is a mock of commonRepo interface.
func NewMockcommonRepo ¶
func NewMockcommonRepo(ctrl *gomock.Controller) *MockcommonRepo
NewMockcommonRepo creates a new mock instance.
func (*MockcommonRepo) EXPECT ¶
func (m *MockcommonRepo) EXPECT() *MockcommonRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockcommonRepo) GetBlockedDuration ¶
GetBlockedDuration mocks base method.
func (*MockcommonRepo) GetRequest ¶
func (m *MockcommonRepo) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)
GetRequest mocks base method.
func (*MockcommonRepo) SaveBlockedDuration ¶
func (m *MockcommonRepo) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error
SaveBlockedDuration mocks base method.
func (*MockcommonRepo) UpsertRequest ¶
func (m *MockcommonRepo) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error
UpsertRequest mocks base method.
type MockcommonRepoMockRecorder ¶
type MockcommonRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockcommonRepoMockRecorder is the mock recorder for MockcommonRepo.
func (*MockcommonRepoMockRecorder) GetBlockedDuration ¶
func (mr *MockcommonRepoMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call
GetBlockedDuration indicates an expected call of GetBlockedDuration.
func (*MockcommonRepoMockRecorder) GetRequest ¶
func (mr *MockcommonRepoMockRecorder) GetRequest(ctx, key any) *gomock.Call
GetRequest indicates an expected call of GetRequest.
func (*MockcommonRepoMockRecorder) SaveBlockedDuration ¶
func (mr *MockcommonRepoMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call
SaveBlockedDuration indicates an expected call of SaveBlockedDuration.
func (*MockcommonRepoMockRecorder) UpsertRequest ¶
func (mr *MockcommonRepoMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call
UpsertRequest indicates an expected call of UpsertRequest.