Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockGoCacheClientInterface
- func (m *MockGoCacheClientInterface) Add(k string, x interface{}, d time.Duration) error
- func (m *MockGoCacheClientInterface) Delete(k string)
- func (m *MockGoCacheClientInterface) EXPECT() *MockGoCacheClientInterfaceMockRecorder
- func (m *MockGoCacheClientInterface) Flush()
- func (m *MockGoCacheClientInterface) Get(k string) (interface{}, bool)
- func (m *MockGoCacheClientInterface) GetWithExpiration(k string) (interface{}, time.Time, bool)
- func (m *MockGoCacheClientInterface) Set(k string, x interface{}, d time.Duration)
- type MockGoCacheClientInterfaceMockRecorder
- func (mr *MockGoCacheClientInterfaceMockRecorder) Add(k, x, d interface{}) *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) Delete(k interface{}) *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) Flush() *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) Get(k interface{}) *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) GetWithExpiration(k interface{}) *gomock.Call
- func (mr *MockGoCacheClientInterfaceMockRecorder) Set(k, x, d interface{}) *gomock.Call
- type MockRedisClientInterface
- func (m *MockRedisClientInterface) Del(keys ...string) *redis.IntCmd
- func (m *MockRedisClientInterface) EXPECT() *MockRedisClientInterfaceMockRecorder
- func (m *MockRedisClientInterface) FlushAll() *redis.StatusCmd
- func (m *MockRedisClientInterface) Get(key string) *redis.StringCmd
- func (m *MockRedisClientInterface) Set(key string, values interface{}, expiration time.Duration) *redis.StatusCmd
- func (m *MockRedisClientInterface) SetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd
- func (m *MockRedisClientInterface) TTL(key string) *redis.DurationCmd
- type MockRedisClientInterfaceMockRecorder
- func (mr *MockRedisClientInterfaceMockRecorder) Del(keys ...interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) FlushAll() *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) Set(key, values, expiration interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) SetNX(key, value, expiration interface{}) *gomock.Call
- func (mr *MockRedisClientInterfaceMockRecorder) TTL(key interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGoCacheClientInterface ¶
type MockGoCacheClientInterface struct {
// contains filtered or unexported fields
}
MockGoCacheClientInterface is a mock of GoCacheClientInterface interface.
func NewMockGoCacheClientInterface ¶
func NewMockGoCacheClientInterface(ctrl *gomock.Controller) *MockGoCacheClientInterface
NewMockGoCacheClientInterface creates a new mock instance.
func (*MockGoCacheClientInterface) Add ¶ added in v1.9.1
func (m *MockGoCacheClientInterface) Add(k string, x interface{}, d time.Duration) error
Add mocks base method.
func (*MockGoCacheClientInterface) Delete ¶
func (m *MockGoCacheClientInterface) Delete(k string)
Delete mocks base method.
func (*MockGoCacheClientInterface) EXPECT ¶
func (m *MockGoCacheClientInterface) EXPECT() *MockGoCacheClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGoCacheClientInterface) Flush ¶
func (m *MockGoCacheClientInterface) Flush()
Flush mocks base method.
func (*MockGoCacheClientInterface) Get ¶
func (m *MockGoCacheClientInterface) Get(k string) (interface{}, bool)
Get mocks base method.
func (*MockGoCacheClientInterface) GetWithExpiration ¶
func (m *MockGoCacheClientInterface) GetWithExpiration(k string) (interface{}, time.Time, bool)
GetWithExpiration mocks base method.
type MockGoCacheClientInterfaceMockRecorder ¶
type MockGoCacheClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockGoCacheClientInterfaceMockRecorder is the mock recorder for MockGoCacheClientInterface.
func (*MockGoCacheClientInterfaceMockRecorder) Add ¶ added in v1.9.1
func (mr *MockGoCacheClientInterfaceMockRecorder) Add(k, x, d interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockGoCacheClientInterfaceMockRecorder) Delete ¶
func (mr *MockGoCacheClientInterfaceMockRecorder) Delete(k interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockGoCacheClientInterfaceMockRecorder) Flush ¶
func (mr *MockGoCacheClientInterfaceMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockGoCacheClientInterfaceMockRecorder) Get ¶
func (mr *MockGoCacheClientInterfaceMockRecorder) Get(k interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockGoCacheClientInterfaceMockRecorder) GetWithExpiration ¶
func (mr *MockGoCacheClientInterfaceMockRecorder) GetWithExpiration(k interface{}) *gomock.Call
GetWithExpiration indicates an expected call of GetWithExpiration.
func (*MockGoCacheClientInterfaceMockRecorder) Set ¶
func (mr *MockGoCacheClientInterfaceMockRecorder) Set(k, x, d interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockRedisClientInterface ¶
type MockRedisClientInterface struct {
// contains filtered or unexported fields
}
MockRedisClientInterface is a mock of RedisClientInterface interface.
func NewMockRedisClientInterface ¶
func NewMockRedisClientInterface(ctrl *gomock.Controller) *MockRedisClientInterface
NewMockRedisClientInterface creates a new mock instance.
func (*MockRedisClientInterface) Del ¶
func (m *MockRedisClientInterface) Del(keys ...string) *redis.IntCmd
Del mocks base method.
func (*MockRedisClientInterface) EXPECT ¶
func (m *MockRedisClientInterface) EXPECT() *MockRedisClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRedisClientInterface) FlushAll ¶
func (m *MockRedisClientInterface) FlushAll() *redis.StatusCmd
FlushAll mocks base method.
func (*MockRedisClientInterface) Get ¶
func (m *MockRedisClientInterface) Get(key string) *redis.StringCmd
Get mocks base method.
func (*MockRedisClientInterface) Set ¶
func (m *MockRedisClientInterface) Set(key string, values interface{}, expiration time.Duration) *redis.StatusCmd
Set mocks base method.
func (*MockRedisClientInterface) SetNX ¶ added in v1.9.1
func (m *MockRedisClientInterface) SetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd
SetNX mocks base method.
func (*MockRedisClientInterface) TTL ¶
func (m *MockRedisClientInterface) TTL(key string) *redis.DurationCmd
TTL mocks base method.
type MockRedisClientInterfaceMockRecorder ¶
type MockRedisClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisClientInterfaceMockRecorder is the mock recorder for MockRedisClientInterface.
func (*MockRedisClientInterfaceMockRecorder) Del ¶
func (mr *MockRedisClientInterfaceMockRecorder) Del(keys ...interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockRedisClientInterfaceMockRecorder) FlushAll ¶
func (mr *MockRedisClientInterfaceMockRecorder) FlushAll() *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockRedisClientInterfaceMockRecorder) Get ¶
func (mr *MockRedisClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRedisClientInterfaceMockRecorder) Set ¶
func (mr *MockRedisClientInterfaceMockRecorder) Set(key, values, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockRedisClientInterfaceMockRecorder) SetNX ¶ added in v1.9.1
func (mr *MockRedisClientInterfaceMockRecorder) SetNX(key, value, expiration interface{}) *gomock.Call
SetNX indicates an expected call of SetNX.
func (*MockRedisClientInterfaceMockRecorder) TTL ¶
func (mr *MockRedisClientInterfaceMockRecorder) TTL(key interface{}) *gomock.Call
TTL indicates an expected call of TTL.