Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Check(arg0 context.Context) health.Status
- func (m *MockClient) Close() error
- func (m *MockClient) Del(key string) error
- func (m *MockClient) Dump(key string) (string, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Eval(ctx context.Context, script string, keys []string, args ...any) *redis0.Cmd
- func (m *MockClient) Exists(key string) (int64, error)
- func (m *MockClient) Expire(key string, expiration time.Duration) (bool, error)
- func (m *MockClient) Get(key string) ([]byte, error)
- func (m *MockClient) GetMulti(keys []string, ignoreNotFound bool) ([]any, error)
- func (m *MockClient) Incr(key string) (int64, error)
- func (m *MockClient) IncrByFloat(key string, value float64) (float64, error)
- func (m *MockClient) PFAdd(key string, els ...string) (int64, error)
- func (m *MockClient) PFCount(keys ...string) (int64, error)
- func (m *MockClient) PFMerge(dest string, expiration time.Duration, keys ...string) error
- func (m *MockClient) Pipeline(tx bool) v3.PipeClient
- func (m *MockClient) Restore(key string, ttl int64, value string) error
- func (m *MockClient) Scan(cursor uint64, key string, count int64) (uint64, []string, error)
- func (m *MockClient) Set(key string, val any, expiration time.Duration) error
- func (m *MockClient) SetNX(ctx context.Context, key string, value any, expiration time.Duration) (bool, error)
- func (m *MockClient) Stats() redis.PoolStats
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Check(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) Close() *gomock.Call
- func (mr *MockClientMockRecorder) Del(key any) *gomock.Call
- func (mr *MockClientMockRecorder) Dump(key any) *gomock.Call
- func (mr *MockClientMockRecorder) Eval(ctx, script, keys any, args ...any) *gomock.Call
- func (mr *MockClientMockRecorder) Exists(key any) *gomock.Call
- func (mr *MockClientMockRecorder) Expire(key, expiration any) *gomock.Call
- func (mr *MockClientMockRecorder) Get(key any) *gomock.Call
- func (mr *MockClientMockRecorder) GetMulti(keys, ignoreNotFound any) *gomock.Call
- func (mr *MockClientMockRecorder) Incr(key any) *gomock.Call
- func (mr *MockClientMockRecorder) IncrByFloat(key, value any) *gomock.Call
- func (mr *MockClientMockRecorder) PFAdd(key any, els ...any) *gomock.Call
- func (mr *MockClientMockRecorder) PFCount(keys ...any) *gomock.Call
- func (mr *MockClientMockRecorder) PFMerge(dest, expiration any, keys ...any) *gomock.Call
- func (mr *MockClientMockRecorder) Pipeline(tx any) *gomock.Call
- func (mr *MockClientMockRecorder) Restore(key, ttl, value any) *gomock.Call
- func (mr *MockClientMockRecorder) Scan(cursor, key, count any) *gomock.Call
- func (mr *MockClientMockRecorder) Set(key, val, expiration any) *gomock.Call
- func (mr *MockClientMockRecorder) SetNX(ctx, key, value, expiration any) *gomock.Call
- func (mr *MockClientMockRecorder) Stats() *gomock.Call
- type MockPipeClient
- func (m *MockPipeClient) Del(keys string) *redis0.IntCmd
- func (m *MockPipeClient) EXPECT() *MockPipeClientMockRecorder
- func (m *MockPipeClient) Exec() ([]redis0.Cmder, error)
- func (m *MockPipeClient) Get(key string) *redis0.StringCmd
- func (m *MockPipeClient) Incr(key string) *redis0.IntCmd
- func (m *MockPipeClient) PFAdd(key string, els ...string) *redis0.IntCmd
- func (m *MockPipeClient) PFCount(keys ...string) *redis0.IntCmd
- func (m *MockPipeClient) TTL(key string) *redis0.DurationCmd
- type MockPipeClientMockRecorder
- func (mr *MockPipeClientMockRecorder) Del(keys any) *gomock.Call
- func (mr *MockPipeClientMockRecorder) Exec() *gomock.Call
- func (mr *MockPipeClientMockRecorder) Get(key any) *gomock.Call
- func (mr *MockPipeClientMockRecorder) Incr(key any) *gomock.Call
- func (mr *MockPipeClientMockRecorder) PFAdd(key any, els ...any) *gomock.Call
- func (mr *MockPipeClientMockRecorder) PFCount(keys ...any) *gomock.Call
- func (mr *MockPipeClientMockRecorder) TTL(key any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) Check ¶
func (m *MockClient) Check(arg0 context.Context) health.Status
Check mocks base method.
func (*MockClient) Dump ¶ added in v0.4.9
func (m *MockClient) Dump(key string) (string, error)
Dump mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) Eval ¶ added in v0.4.7
func (m *MockClient) Eval(ctx context.Context, script string, keys []string, args ...any) *redis0.Cmd
Eval mocks base method.
func (*MockClient) Exists ¶ added in v0.4.9
func (m *MockClient) Exists(key string) (int64, error)
Exists mocks base method.
func (*MockClient) Get ¶
func (m *MockClient) Get(key string) ([]byte, error)
Get mocks base method.
func (*MockClient) GetMulti ¶
func (m *MockClient) GetMulti(keys []string, ignoreNotFound bool) ([]any, error)
GetMulti mocks base method.
func (*MockClient) Incr ¶
func (m *MockClient) Incr(key string) (int64, error)
Incr mocks base method.
func (*MockClient) IncrByFloat ¶
func (m *MockClient) IncrByFloat(key string, value float64) (float64, error)
IncrByFloat mocks base method.
func (*MockClient) PFAdd ¶
func (m *MockClient) PFAdd(key string, els ...string) (int64, error)
PFAdd mocks base method.
func (*MockClient) PFCount ¶
func (m *MockClient) PFCount(keys ...string) (int64, error)
PFCount mocks base method.
func (*MockClient) Pipeline ¶
func (m *MockClient) Pipeline(tx bool) v3.PipeClient
Pipeline mocks base method.
func (*MockClient) Restore ¶ added in v0.4.9
func (m *MockClient) Restore(key string, ttl int64, value string) error
Restore mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Check ¶
func (mr *MockClientMockRecorder) Check(arg0 any) *gomock.Call
Check indicates an expected call of Check.
func (*MockClientMockRecorder) Close ¶
func (mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockClientMockRecorder) Del ¶
func (mr *MockClientMockRecorder) Del(key any) *gomock.Call
Del indicates an expected call of Del.
func (*MockClientMockRecorder) Dump ¶ added in v0.4.9
func (mr *MockClientMockRecorder) Dump(key any) *gomock.Call
Dump indicates an expected call of Dump.
func (*MockClientMockRecorder) Eval ¶ added in v0.4.7
func (mr *MockClientMockRecorder) Eval(ctx, script, keys any, args ...any) *gomock.Call
Eval indicates an expected call of Eval.
func (*MockClientMockRecorder) Exists ¶ added in v0.4.9
func (mr *MockClientMockRecorder) Exists(key any) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockClientMockRecorder) Expire ¶
func (mr *MockClientMockRecorder) Expire(key, expiration any) *gomock.Call
Expire indicates an expected call of Expire.
func (*MockClientMockRecorder) Get ¶
func (mr *MockClientMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockClientMockRecorder) GetMulti ¶
func (mr *MockClientMockRecorder) GetMulti(keys, ignoreNotFound any) *gomock.Call
GetMulti indicates an expected call of GetMulti.
func (*MockClientMockRecorder) Incr ¶
func (mr *MockClientMockRecorder) Incr(key any) *gomock.Call
Incr indicates an expected call of Incr.
func (*MockClientMockRecorder) IncrByFloat ¶
func (mr *MockClientMockRecorder) IncrByFloat(key, value any) *gomock.Call
IncrByFloat indicates an expected call of IncrByFloat.
func (*MockClientMockRecorder) PFAdd ¶
func (mr *MockClientMockRecorder) PFAdd(key any, els ...any) *gomock.Call
PFAdd indicates an expected call of PFAdd.
func (*MockClientMockRecorder) PFCount ¶
func (mr *MockClientMockRecorder) PFCount(keys ...any) *gomock.Call
PFCount indicates an expected call of PFCount.
func (*MockClientMockRecorder) PFMerge ¶
func (mr *MockClientMockRecorder) PFMerge(dest, expiration any, keys ...any) *gomock.Call
PFMerge indicates an expected call of PFMerge.
func (*MockClientMockRecorder) Pipeline ¶
func (mr *MockClientMockRecorder) Pipeline(tx any) *gomock.Call
Pipeline indicates an expected call of Pipeline.
func (*MockClientMockRecorder) Restore ¶ added in v0.4.9
func (mr *MockClientMockRecorder) Restore(key, ttl, value any) *gomock.Call
Restore indicates an expected call of Restore.
func (*MockClientMockRecorder) Scan ¶
func (mr *MockClientMockRecorder) Scan(cursor, key, count any) *gomock.Call
Scan indicates an expected call of Scan.
func (*MockClientMockRecorder) Set ¶
func (mr *MockClientMockRecorder) Set(key, val, expiration any) *gomock.Call
Set indicates an expected call of Set.
func (*MockClientMockRecorder) SetNX ¶ added in v0.4.7
func (mr *MockClientMockRecorder) SetNX(ctx, key, value, expiration any) *gomock.Call
SetNX indicates an expected call of SetNX.
func (*MockClientMockRecorder) Stats ¶
func (mr *MockClientMockRecorder) Stats() *gomock.Call
Stats indicates an expected call of Stats.
type MockPipeClient ¶
type MockPipeClient struct {
// contains filtered or unexported fields
}
MockPipeClient is a mock of PipeClient interface.
func NewMockPipeClient ¶
func NewMockPipeClient(ctrl *gomock.Controller) *MockPipeClient
NewMockPipeClient creates a new mock instance.
func (*MockPipeClient) Del ¶
func (m *MockPipeClient) Del(keys string) *redis0.IntCmd
Del mocks base method.
func (*MockPipeClient) EXPECT ¶
func (m *MockPipeClient) EXPECT() *MockPipeClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPipeClient) Exec ¶
func (m *MockPipeClient) Exec() ([]redis0.Cmder, error)
Exec mocks base method.
func (*MockPipeClient) Get ¶
func (m *MockPipeClient) Get(key string) *redis0.StringCmd
Get mocks base method.
func (*MockPipeClient) Incr ¶
func (m *MockPipeClient) Incr(key string) *redis0.IntCmd
Incr mocks base method.
func (*MockPipeClient) PFAdd ¶
func (m *MockPipeClient) PFAdd(key string, els ...string) *redis0.IntCmd
PFAdd mocks base method.
func (*MockPipeClient) PFCount ¶
func (m *MockPipeClient) PFCount(keys ...string) *redis0.IntCmd
PFCount mocks base method.
func (*MockPipeClient) TTL ¶
func (m *MockPipeClient) TTL(key string) *redis0.DurationCmd
TTL mocks base method.
type MockPipeClientMockRecorder ¶
type MockPipeClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPipeClientMockRecorder is the mock recorder for MockPipeClient.
func (*MockPipeClientMockRecorder) Del ¶
func (mr *MockPipeClientMockRecorder) Del(keys any) *gomock.Call
Del indicates an expected call of Del.
func (*MockPipeClientMockRecorder) Exec ¶
func (mr *MockPipeClientMockRecorder) Exec() *gomock.Call
Exec indicates an expected call of Exec.
func (*MockPipeClientMockRecorder) Get ¶
func (mr *MockPipeClientMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockPipeClientMockRecorder) Incr ¶
func (mr *MockPipeClientMockRecorder) Incr(key any) *gomock.Call
Incr indicates an expected call of Incr.
func (*MockPipeClientMockRecorder) PFAdd ¶
func (mr *MockPipeClientMockRecorder) PFAdd(key any, els ...any) *gomock.Call
PFAdd indicates an expected call of PFAdd.