Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockCache
- type MockCacheMockRecorder
- type MockDeleter
- type MockDeleterMockRecorder
- type MockFeaturesCache
- type MockFeaturesCacheMockRecorder
- type MockGetter
- type MockGetterMockRecorder
- type MockInMemoryCache
- func (m *MockInMemoryCache) Delete(key interface{})
- func (m *MockInMemoryCache) Destroy()
- func (m *MockInMemoryCache) EXPECT() *MockInMemoryCacheMockRecorder
- func (m *MockInMemoryCache) Get(key interface{}) (interface{}, error)
- func (m *MockInMemoryCache) Put(key, value interface{}, expiration time.Duration) error
- func (m *MockInMemoryCache) Scan(keyPrefix string) ([]string, error)
- type MockInMemoryCacheMockRecorder
- func (mr *MockInMemoryCacheMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockInMemoryCacheMockRecorder) Destroy() *gomock.Call
- func (mr *MockInMemoryCacheMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockInMemoryCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call
- func (mr *MockInMemoryCacheMockRecorder) Scan(keyPrefix interface{}) *gomock.Call
- type MockPutter
- type MockPutterMockRecorder
- type MockScanner
- type MockScannerMockRecorder
- type MockSegmentUsersCache
- func (m *MockSegmentUsersCache) Delete(id string)
- func (m *MockSegmentUsersCache) DeleteAll() error
- func (m *MockSegmentUsersCache) EXPECT() *MockSegmentUsersCacheMockRecorder
- func (m *MockSegmentUsersCache) Get(segmentID string) (*feature.SegmentUsers, error)
- func (m *MockSegmentUsersCache) GetSegmentIDs() ([]string, error)
- func (m *MockSegmentUsersCache) Put(segmentUsers *feature.SegmentUsers) error
- type MockSegmentUsersCacheMockRecorder
- func (mr *MockSegmentUsersCacheMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockSegmentUsersCacheMockRecorder) DeleteAll() *gomock.Call
- func (mr *MockSegmentUsersCacheMockRecorder) Get(segmentID interface{}) *gomock.Call
- func (mr *MockSegmentUsersCacheMockRecorder) GetSegmentIDs() *gomock.Call
- func (mr *MockSegmentUsersCacheMockRecorder) Put(segmentUsers interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache is a mock of Cache interface.
func NewMockCache ¶
func NewMockCache(ctrl *gomock.Controller) *MockCache
NewMockCache creates a new mock instance.
func (*MockCache) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) Delete ¶
func (mr *MockCacheMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCacheMockRecorder) Get ¶
func (mr *MockCacheMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacheMockRecorder) Put ¶
func (mr *MockCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockCacheMockRecorder) Scan ¶
func (mr *MockCacheMockRecorder) Scan(keyPrefix interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type MockDeleter ¶
type MockDeleter struct {
// contains filtered or unexported fields
}
MockDeleter is a mock of Deleter interface.
func NewMockDeleter ¶
func NewMockDeleter(ctrl *gomock.Controller) *MockDeleter
NewMockDeleter creates a new mock instance.
func (*MockDeleter) Delete ¶
func (m *MockDeleter) Delete(key interface{})
Delete mocks base method.
func (*MockDeleter) EXPECT ¶
func (m *MockDeleter) EXPECT() *MockDeleterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDeleterMockRecorder ¶
type MockDeleterMockRecorder struct {
// contains filtered or unexported fields
}
MockDeleterMockRecorder is the mock recorder for MockDeleter.
func (*MockDeleterMockRecorder) Delete ¶
func (mr *MockDeleterMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
type MockFeaturesCache ¶
type MockFeaturesCache struct {
// contains filtered or unexported fields
}
MockFeaturesCache is a mock of FeaturesCache interface.
func NewMockFeaturesCache ¶
func NewMockFeaturesCache(ctrl *gomock.Controller) *MockFeaturesCache
NewMockFeaturesCache creates a new mock instance.
func (*MockFeaturesCache) Delete ¶
func (m *MockFeaturesCache) Delete(id string)
Delete mocks base method.
func (*MockFeaturesCache) DeleteAll ¶
func (m *MockFeaturesCache) DeleteAll() error
DeleteAll mocks base method.
func (*MockFeaturesCache) EXPECT ¶
func (m *MockFeaturesCache) EXPECT() *MockFeaturesCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFeaturesCacheMockRecorder ¶
type MockFeaturesCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockFeaturesCacheMockRecorder is the mock recorder for MockFeaturesCache.
func (*MockFeaturesCacheMockRecorder) Delete ¶
func (mr *MockFeaturesCacheMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockFeaturesCacheMockRecorder) DeleteAll ¶
func (mr *MockFeaturesCacheMockRecorder) DeleteAll() *gomock.Call
DeleteAll indicates an expected call of DeleteAll.
func (*MockFeaturesCacheMockRecorder) Get ¶
func (mr *MockFeaturesCacheMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockFeaturesCacheMockRecorder) Put ¶
func (mr *MockFeaturesCacheMockRecorder) Put(feature interface{}) *gomock.Call
Put indicates an expected call of Put.
type MockGetter ¶
type MockGetter struct {
// contains filtered or unexported fields
}
MockGetter is a mock of Getter interface.
func NewMockGetter ¶
func NewMockGetter(ctrl *gomock.Controller) *MockGetter
NewMockGetter creates a new mock instance.
func (*MockGetter) EXPECT ¶
func (m *MockGetter) EXPECT() *MockGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGetter) Get ¶
func (m *MockGetter) Get(key interface{}) (interface{}, error)
Get mocks base method.
type MockGetterMockRecorder ¶
type MockGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockGetterMockRecorder is the mock recorder for MockGetter.
func (*MockGetterMockRecorder) Get ¶
func (mr *MockGetterMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockInMemoryCache ¶
type MockInMemoryCache struct {
// contains filtered or unexported fields
}
MockInMemoryCache is a mock of InMemoryCache interface.
func NewMockInMemoryCache ¶
func NewMockInMemoryCache(ctrl *gomock.Controller) *MockInMemoryCache
NewMockInMemoryCache creates a new mock instance.
func (*MockInMemoryCache) Delete ¶
func (m *MockInMemoryCache) Delete(key interface{})
Delete mocks base method.
func (*MockInMemoryCache) Destroy ¶
func (m *MockInMemoryCache) Destroy()
Destroy mocks base method.
func (*MockInMemoryCache) EXPECT ¶
func (m *MockInMemoryCache) EXPECT() *MockInMemoryCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInMemoryCache) Get ¶
func (m *MockInMemoryCache) Get(key interface{}) (interface{}, error)
Get mocks base method.
type MockInMemoryCacheMockRecorder ¶
type MockInMemoryCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockInMemoryCacheMockRecorder is the mock recorder for MockInMemoryCache.
func (*MockInMemoryCacheMockRecorder) Delete ¶
func (mr *MockInMemoryCacheMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInMemoryCacheMockRecorder) Destroy ¶
func (mr *MockInMemoryCacheMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockInMemoryCacheMockRecorder) Get ¶
func (mr *MockInMemoryCacheMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockInMemoryCacheMockRecorder) Put ¶
func (mr *MockInMemoryCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockInMemoryCacheMockRecorder) Scan ¶
func (mr *MockInMemoryCacheMockRecorder) Scan(keyPrefix interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type MockPutter ¶
type MockPutter struct {
// contains filtered or unexported fields
}
MockPutter is a mock of Putter interface.
func NewMockPutter ¶
func NewMockPutter(ctrl *gomock.Controller) *MockPutter
NewMockPutter creates a new mock instance.
func (*MockPutter) EXPECT ¶
func (m *MockPutter) EXPECT() *MockPutterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPutterMockRecorder ¶
type MockPutterMockRecorder struct {
// contains filtered or unexported fields
}
MockPutterMockRecorder is the mock recorder for MockPutter.
func (*MockPutterMockRecorder) Put ¶
func (mr *MockPutterMockRecorder) Put(key, value, expiration interface{}) *gomock.Call
Put indicates an expected call of Put.
type MockScanner ¶
type MockScanner struct {
// contains filtered or unexported fields
}
MockScanner is a mock of Scanner interface.
func NewMockScanner ¶
func NewMockScanner(ctrl *gomock.Controller) *MockScanner
NewMockScanner creates a new mock instance.
func (*MockScanner) EXPECT ¶
func (m *MockScanner) EXPECT() *MockScannerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockScannerMockRecorder ¶
type MockScannerMockRecorder struct {
// contains filtered or unexported fields
}
MockScannerMockRecorder is the mock recorder for MockScanner.
func (*MockScannerMockRecorder) Scan ¶
func (mr *MockScannerMockRecorder) Scan(keyPrefix interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type MockSegmentUsersCache ¶
type MockSegmentUsersCache struct {
// contains filtered or unexported fields
}
MockSegmentUsersCache is a mock of SegmentUsersCache interface.
func NewMockSegmentUsersCache ¶
func NewMockSegmentUsersCache(ctrl *gomock.Controller) *MockSegmentUsersCache
NewMockSegmentUsersCache creates a new mock instance.
func (*MockSegmentUsersCache) Delete ¶
func (m *MockSegmentUsersCache) Delete(id string)
Delete mocks base method.
func (*MockSegmentUsersCache) DeleteAll ¶
func (m *MockSegmentUsersCache) DeleteAll() error
DeleteAll mocks base method.
func (*MockSegmentUsersCache) EXPECT ¶
func (m *MockSegmentUsersCache) EXPECT() *MockSegmentUsersCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSegmentUsersCache) Get ¶
func (m *MockSegmentUsersCache) Get(segmentID string) (*feature.SegmentUsers, error)
Get mocks base method.
func (*MockSegmentUsersCache) GetSegmentIDs ¶
func (m *MockSegmentUsersCache) GetSegmentIDs() ([]string, error)
GetSegmentIDs mocks base method.
func (*MockSegmentUsersCache) Put ¶
func (m *MockSegmentUsersCache) Put(segmentUsers *feature.SegmentUsers) error
Put mocks base method.
type MockSegmentUsersCacheMockRecorder ¶
type MockSegmentUsersCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockSegmentUsersCacheMockRecorder is the mock recorder for MockSegmentUsersCache.
func (*MockSegmentUsersCacheMockRecorder) Delete ¶
func (mr *MockSegmentUsersCacheMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSegmentUsersCacheMockRecorder) DeleteAll ¶
func (mr *MockSegmentUsersCacheMockRecorder) DeleteAll() *gomock.Call
DeleteAll indicates an expected call of DeleteAll.
func (*MockSegmentUsersCacheMockRecorder) Get ¶
func (mr *MockSegmentUsersCacheMockRecorder) Get(segmentID interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSegmentUsersCacheMockRecorder) GetSegmentIDs ¶
func (mr *MockSegmentUsersCacheMockRecorder) GetSegmentIDs() *gomock.Call
GetSegmentIDs indicates an expected call of GetSegmentIDs.
func (*MockSegmentUsersCacheMockRecorder) Put ¶
func (mr *MockSegmentUsersCacheMockRecorder) Put(segmentUsers interface{}) *gomock.Call
Put indicates an expected call of Put.