Documentation ¶
Overview ¶
Package mock_services is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) Authorize ¶
func (m *MockAuth) Authorize(input core.AuthorizeInput) bool
Authorize mocks base method.
func (*MockAuth) EXPECT ¶
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthMockRecorder ¶
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) Authorize ¶
func (mr *MockAuthMockRecorder) Authorize(input interface{}) *gomock.Call
Authorize indicates an expected call of Authorize.
type MockBlacklist ¶
type MockBlacklist struct {
// contains filtered or unexported fields
}
MockBlacklist is a mock of Blacklist interface.
func NewMockBlacklist ¶
func NewMockBlacklist(ctrl *gomock.Controller) *MockBlacklist
NewMockBlacklist creates a new mock instance.
func (*MockBlacklist) AddToBlacklist ¶
func (m *MockBlacklist) AddToBlacklist(subnetInput core.SubnetInput) error
AddToBlacklist mocks base method.
func (*MockBlacklist) CheckIfIPInBlacklist ¶
func (m *MockBlacklist) CheckIfIPInBlacklist(ip string) (bool, error)
CheckIfIPInBlacklist mocks base method.
func (*MockBlacklist) EXPECT ¶
func (m *MockBlacklist) EXPECT() *MockBlacklistMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlacklist) RemoveFromBlacklist ¶
func (m *MockBlacklist) RemoveFromBlacklist(subnetInput core.SubnetInput) error
RemoveFromBlacklist mocks base method.
type MockBlacklistMockRecorder ¶
type MockBlacklistMockRecorder struct {
// contains filtered or unexported fields
}
MockBlacklistMockRecorder is the mock recorder for MockBlacklist.
func (*MockBlacklistMockRecorder) AddToBlacklist ¶
func (mr *MockBlacklistMockRecorder) AddToBlacklist(subnetInput interface{}) *gomock.Call
AddToBlacklist indicates an expected call of AddToBlacklist.
func (*MockBlacklistMockRecorder) CheckIfIPInBlacklist ¶
func (mr *MockBlacklistMockRecorder) CheckIfIPInBlacklist(ip interface{}) *gomock.Call
CheckIfIPInBlacklist indicates an expected call of CheckIfIPInBlacklist.
func (*MockBlacklistMockRecorder) RemoveFromBlacklist ¶
func (mr *MockBlacklistMockRecorder) RemoveFromBlacklist(subnetInput interface{}) *gomock.Call
RemoveFromBlacklist indicates an expected call of RemoveFromBlacklist.
type MockBucket ¶
type MockBucket struct {
// contains filtered or unexported fields
}
MockBucket is a mock of Bucket interface.
func NewMockBucket ¶
func NewMockBucket(ctrl *gomock.Controller) *MockBucket
NewMockBucket creates a new mock instance.
func (*MockBucket) EXPECT ¶
func (m *MockBucket) EXPECT() *MockBucketMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBucketMockRecorder ¶
type MockBucketMockRecorder struct {
// contains filtered or unexported fields
}
MockBucketMockRecorder is the mock recorder for MockBucket.
func (*MockBucketMockRecorder) ResetBucket ¶
func (mr *MockBucketMockRecorder) ResetBucket() *gomock.Call
ResetBucket indicates an expected call of ResetBucket.
type MockLeakyBucket ¶
type MockLeakyBucket struct {
// contains filtered or unexported fields
}
MockLeakyBucket is a mock of LeakyBucket interface.
func NewMockLeakyBucket ¶
func NewMockLeakyBucket(ctrl *gomock.Controller) *MockLeakyBucket
NewMockLeakyBucket creates a new mock instance.
func (*MockLeakyBucket) Add ¶
func (m *MockLeakyBucket) Add(arg0 core.AuthorizeInput) bool
Add mocks base method.
func (*MockLeakyBucket) EXPECT ¶
func (m *MockLeakyBucket) EXPECT() *MockLeakyBucketMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLeakyBucket) ResetResetBucketTicker ¶
func (m *MockLeakyBucket) ResetResetBucketTicker()
ResetResetBucketTicker mocks base method.
type MockLeakyBucketMockRecorder ¶
type MockLeakyBucketMockRecorder struct {
// contains filtered or unexported fields
}
MockLeakyBucketMockRecorder is the mock recorder for MockLeakyBucket.
func (*MockLeakyBucketMockRecorder) Add ¶
func (mr *MockLeakyBucketMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockLeakyBucketMockRecorder) ResetResetBucketTicker ¶
func (mr *MockLeakyBucketMockRecorder) ResetResetBucketTicker() *gomock.Call
ResetResetBucketTicker indicates an expected call of ResetResetBucketTicker.
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Error ¶
func (mr *MockLoggerMockRecorder) Error(err interface{}) *gomock.Call
Error indicates an expected call of Error.
type MockWhitelist ¶
type MockWhitelist struct {
// contains filtered or unexported fields
}
MockWhitelist is a mock of Whitelist interface.
func NewMockWhitelist ¶
func NewMockWhitelist(ctrl *gomock.Controller) *MockWhitelist
NewMockWhitelist creates a new mock instance.
func (*MockWhitelist) AddToWhitelist ¶
func (m *MockWhitelist) AddToWhitelist(subnetInput core.SubnetInput) error
AddToWhitelist mocks base method.
func (*MockWhitelist) CheckIfIPInWhitelist ¶
func (m *MockWhitelist) CheckIfIPInWhitelist(ip string) (bool, error)
CheckIfIPInWhitelist mocks base method.
func (*MockWhitelist) EXPECT ¶
func (m *MockWhitelist) EXPECT() *MockWhitelistMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWhitelist) RemoveFromWhitelist ¶
func (m *MockWhitelist) RemoveFromWhitelist(subnetInput core.SubnetInput) error
RemoveFromWhitelist mocks base method.
type MockWhitelistMockRecorder ¶
type MockWhitelistMockRecorder struct {
// contains filtered or unexported fields
}
MockWhitelistMockRecorder is the mock recorder for MockWhitelist.
func (*MockWhitelistMockRecorder) AddToWhitelist ¶
func (mr *MockWhitelistMockRecorder) AddToWhitelist(subnetInput interface{}) *gomock.Call
AddToWhitelist indicates an expected call of AddToWhitelist.
func (*MockWhitelistMockRecorder) CheckIfIPInWhitelist ¶
func (mr *MockWhitelistMockRecorder) CheckIfIPInWhitelist(ip interface{}) *gomock.Call
CheckIfIPInWhitelist indicates an expected call of CheckIfIPInWhitelist.
func (*MockWhitelistMockRecorder) RemoveFromWhitelist ¶
func (mr *MockWhitelistMockRecorder) RemoveFromWhitelist(subnetInput interface{}) *gomock.Call
RemoveFromWhitelist indicates an expected call of RemoveFromWhitelist.