Documentation ¶
Overview ¶
Package redismock is a generated GoMock package.
Index ¶
- type MockRedis
- func (m *MockRedis) Close() error
- func (m *MockRedis) Delete(ctx context.Context, key string) (int, error)
- func (m *MockRedis) EXPECT() *MockRedisMockRecorder
- func (m *MockRedis) Expire(ctx context.Context, key string, duration int) (int, error)
- func (m *MockRedis) Get(ctx context.Context, key string) (string, error)
- func (m *MockRedis) HDel(ctx context.Context, key string, fields ...string) (int, error)
- func (m *MockRedis) HGet(ctx context.Context, key, field string) (string, error)
- func (m *MockRedis) HGetAll(ctx context.Context, key string) (map[string]string, error)
- func (m *MockRedis) HMGet(ctx context.Context, key string, fields ...string) ([]string, error)
- func (m *MockRedis) HMSet(ctx context.Context, key string, kv map[string]interface{}) (string, error)
- func (m *MockRedis) HSet(ctx context.Context, key, field string, value interface{}) (int, error)
- func (m *MockRedis) HSetEX(ctx context.Context, key, field string, value interface{}, expire int) (int, error)
- func (m *MockRedis) Increment(ctx context.Context, key string) (int, error)
- func (m *MockRedis) IncrementBy(ctx context.Context, key string, amount int) (int, error)
- func (m *MockRedis) IsErrNil(err error) bool
- func (m *MockRedis) IsResponseOK(result string) bool
- func (m *MockRedis) LIndex(ctx context.Context, key string, index int) (string, error)
- func (m *MockRedis) LLen(ctx context.Context, key string) (int, error)
- func (m *MockRedis) LPop(ctx context.Context, key string) (string, error)
- func (m *MockRedis) LPush(ctx context.Context, key string, values ...interface{}) (int, error)
- func (m *MockRedis) LPushX(ctx context.Context, key string, values ...interface{}) (int, error)
- func (m *MockRedis) LRem(ctx context.Context, key, value string, count int) (int, error)
- func (m *MockRedis) LSet(ctx context.Context, key, value string, index int) (int, error)
- func (m *MockRedis) LTrim(ctd context.Context, key string, start, stop int) (string, error)
- func (m *MockRedis) MGet(ctx context.Context, keys ...string) ([]string, error)
- func (m *MockRedis) MSet(ctx context.Context, pairs ...interface{}) (string, error)
- func (m *MockRedis) Set(ctx context.Context, key string, value interface{}) (string, error)
- func (m *MockRedis) SetEX(ctx context.Context, key string, value interface{}, expire int) (string, error)
- func (m *MockRedis) SetNX(ctx context.Context, key string, value interface{}, expire int) (int, error)
- type MockRedisMockRecorder
- func (mr *MockRedisMockRecorder) Close() *gomock.Call
- func (mr *MockRedisMockRecorder) Delete(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Expire(ctx, key, duration interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) HDel(ctx, key interface{}, fields ...interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) HGet(ctx, key, field interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) HGetAll(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) HMGet(ctx, key interface{}, fields ...interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) HMSet(ctx, key, kv interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) HSet(ctx, key, field, value interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) HSetEX(ctx, key, field, value, expire interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Increment(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) IncrementBy(ctx, key, amount interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) IsErrNil(err interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) IsResponseOK(result interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LIndex(ctx, key, index interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LLen(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LPop(ctx, key interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LPush(ctx, key interface{}, values ...interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LPushX(ctx, key interface{}, values ...interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LRem(ctx, key, value, count interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LSet(ctx, key, value, index interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) LTrim(ctd, key, start, stop interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) MGet(ctx interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) MSet(ctx interface{}, pairs ...interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) Set(ctx, key, value interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) SetEX(ctx, key, value, expire interface{}) *gomock.Call
- func (mr *MockRedisMockRecorder) SetNX(ctx, key, value, expire interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRedis ¶
type MockRedis struct {
// contains filtered or unexported fields
}
MockRedis is a mock of Redis interface
func NewMockRedis ¶
func NewMockRedis(ctrl *gomock.Controller) *MockRedis
NewMockRedis creates a new mock instance
func (*MockRedis) EXPECT ¶
func (m *MockRedis) EXPECT() *MockRedisMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRedis) HMSet ¶
func (m *MockRedis) HMSet(ctx context.Context, key string, kv map[string]interface{}) (string, error)
HMSet mocks base method
func (*MockRedis) HSetEX ¶
func (m *MockRedis) HSetEX(ctx context.Context, key, field string, value interface{}, expire int) (int, error)
HSetEX mocks base method
func (*MockRedis) IncrementBy ¶
IncrementBy mocks base method
func (*MockRedis) IsResponseOK ¶
IsResponseOK mocks base method
type MockRedisMockRecorder ¶
type MockRedisMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisMockRecorder is the mock recorder for MockRedis
func (*MockRedisMockRecorder) Close ¶
func (mr *MockRedisMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockRedisMockRecorder) Delete ¶
func (mr *MockRedisMockRecorder) Delete(ctx, key interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockRedisMockRecorder) Expire ¶
func (mr *MockRedisMockRecorder) Expire(ctx, key, duration interface{}) *gomock.Call
Expire indicates an expected call of Expire
func (*MockRedisMockRecorder) Get ¶
func (mr *MockRedisMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockRedisMockRecorder) HDel ¶
func (mr *MockRedisMockRecorder) HDel(ctx, key interface{}, fields ...interface{}) *gomock.Call
HDel indicates an expected call of HDel
func (*MockRedisMockRecorder) HGet ¶
func (mr *MockRedisMockRecorder) HGet(ctx, key, field interface{}) *gomock.Call
HGet indicates an expected call of HGet
func (*MockRedisMockRecorder) HGetAll ¶
func (mr *MockRedisMockRecorder) HGetAll(ctx, key interface{}) *gomock.Call
HGetAll indicates an expected call of HGetAll
func (*MockRedisMockRecorder) HMGet ¶
func (mr *MockRedisMockRecorder) HMGet(ctx, key interface{}, fields ...interface{}) *gomock.Call
HMGet indicates an expected call of HMGet
func (*MockRedisMockRecorder) HMSet ¶
func (mr *MockRedisMockRecorder) HMSet(ctx, key, kv interface{}) *gomock.Call
HMSet indicates an expected call of HMSet
func (*MockRedisMockRecorder) HSet ¶
func (mr *MockRedisMockRecorder) HSet(ctx, key, field, value interface{}) *gomock.Call
HSet indicates an expected call of HSet
func (*MockRedisMockRecorder) HSetEX ¶
func (mr *MockRedisMockRecorder) HSetEX(ctx, key, field, value, expire interface{}) *gomock.Call
HSetEX indicates an expected call of HSetEX
func (*MockRedisMockRecorder) Increment ¶
func (mr *MockRedisMockRecorder) Increment(ctx, key interface{}) *gomock.Call
Increment indicates an expected call of Increment
func (*MockRedisMockRecorder) IncrementBy ¶
func (mr *MockRedisMockRecorder) IncrementBy(ctx, key, amount interface{}) *gomock.Call
IncrementBy indicates an expected call of IncrementBy
func (*MockRedisMockRecorder) IsErrNil ¶
func (mr *MockRedisMockRecorder) IsErrNil(err interface{}) *gomock.Call
IsErrNil indicates an expected call of IsErrNil
func (*MockRedisMockRecorder) IsResponseOK ¶
func (mr *MockRedisMockRecorder) IsResponseOK(result interface{}) *gomock.Call
IsResponseOK indicates an expected call of IsResponseOK
func (*MockRedisMockRecorder) LIndex ¶
func (mr *MockRedisMockRecorder) LIndex(ctx, key, index interface{}) *gomock.Call
LIndex indicates an expected call of LIndex
func (*MockRedisMockRecorder) LLen ¶
func (mr *MockRedisMockRecorder) LLen(ctx, key interface{}) *gomock.Call
LLen indicates an expected call of LLen
func (*MockRedisMockRecorder) LPop ¶
func (mr *MockRedisMockRecorder) LPop(ctx, key interface{}) *gomock.Call
LPop indicates an expected call of LPop
func (*MockRedisMockRecorder) LPush ¶
func (mr *MockRedisMockRecorder) LPush(ctx, key interface{}, values ...interface{}) *gomock.Call
LPush indicates an expected call of LPush
func (*MockRedisMockRecorder) LPushX ¶
func (mr *MockRedisMockRecorder) LPushX(ctx, key interface{}, values ...interface{}) *gomock.Call
LPushX indicates an expected call of LPushX
func (*MockRedisMockRecorder) LRem ¶
func (mr *MockRedisMockRecorder) LRem(ctx, key, value, count interface{}) *gomock.Call
LRem indicates an expected call of LRem
func (*MockRedisMockRecorder) LSet ¶
func (mr *MockRedisMockRecorder) LSet(ctx, key, value, index interface{}) *gomock.Call
LSet indicates an expected call of LSet
func (*MockRedisMockRecorder) LTrim ¶
func (mr *MockRedisMockRecorder) LTrim(ctd, key, start, stop interface{}) *gomock.Call
LTrim indicates an expected call of LTrim
func (*MockRedisMockRecorder) MGet ¶
func (mr *MockRedisMockRecorder) MGet(ctx interface{}, keys ...interface{}) *gomock.Call
MGet indicates an expected call of MGet
func (*MockRedisMockRecorder) MSet ¶
func (mr *MockRedisMockRecorder) MSet(ctx interface{}, pairs ...interface{}) *gomock.Call
MSet indicates an expected call of MSet
func (*MockRedisMockRecorder) Set ¶
func (mr *MockRedisMockRecorder) Set(ctx, key, value interface{}) *gomock.Call
Set indicates an expected call of Set
func (*MockRedisMockRecorder) SetEX ¶
func (mr *MockRedisMockRecorder) SetEX(ctx, key, value, expire interface{}) *gomock.Call
SetEX indicates an expected call of SetEX
func (*MockRedisMockRecorder) SetNX ¶
func (mr *MockRedisMockRecorder) SetNX(ctx, key, value, expire interface{}) *gomock.Call
SetNX indicates an expected call of SetNX