Documentation ¶
Index ¶
- type RedisClient
- func (_m *RedisClient) Del(ctx context.Context, keys ...string) *redis.IntCmd
- func (_m *RedisClient) EXPECT() *RedisClient_Expecter
- func (_m *RedisClient) HGetAll(ctx context.Context, key string) *redis.MapStringStringCmd
- func (_m *RedisClient) HSet(ctx context.Context, key string, values ...interface{}) *redis.IntCmd
- type RedisClient_Del_Call
- func (_c *RedisClient_Del_Call) Return(_a0 *redis.IntCmd) *RedisClient_Del_Call
- func (_c *RedisClient_Del_Call) Run(run func(ctx context.Context, keys ...string)) *RedisClient_Del_Call
- func (_c *RedisClient_Del_Call) RunAndReturn(run func(context.Context, ...string) *redis.IntCmd) *RedisClient_Del_Call
- type RedisClient_Expecter
- func (_e *RedisClient_Expecter) Del(ctx interface{}, keys ...interface{}) *RedisClient_Del_Call
- func (_e *RedisClient_Expecter) HGetAll(ctx interface{}, key interface{}) *RedisClient_HGetAll_Call
- func (_e *RedisClient_Expecter) HSet(ctx interface{}, key interface{}, values ...interface{}) *RedisClient_HSet_Call
- type RedisClient_HGetAll_Call
- func (_c *RedisClient_HGetAll_Call) Return(_a0 *redis.MapStringStringCmd) *RedisClient_HGetAll_Call
- func (_c *RedisClient_HGetAll_Call) Run(run func(ctx context.Context, key string)) *RedisClient_HGetAll_Call
- func (_c *RedisClient_HGetAll_Call) RunAndReturn(run func(context.Context, string) *redis.MapStringStringCmd) *RedisClient_HGetAll_Call
- type RedisClient_HSet_Call
- func (_c *RedisClient_HSet_Call) Return(_a0 *redis.IntCmd) *RedisClient_HSet_Call
- func (_c *RedisClient_HSet_Call) Run(run func(ctx context.Context, key string, values ...interface{})) *RedisClient_HSet_Call
- func (_c *RedisClient_HSet_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *redis.IntCmd) *RedisClient_HSet_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
RedisClient is an autogenerated mock type for the RedisClient type
func NewRedisClient ¶
func NewRedisClient(t interface { mock.TestingT Cleanup(func()) }) *RedisClient
NewRedisClient creates a new instance of RedisClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RedisClient) EXPECT ¶
func (_m *RedisClient) EXPECT() *RedisClient_Expecter
func (*RedisClient) HGetAll ¶
func (_m *RedisClient) HGetAll(ctx context.Context, key string) *redis.MapStringStringCmd
HGetAll provides a mock function with given fields: ctx, key
type RedisClient_Del_Call ¶
RedisClient_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del'
func (*RedisClient_Del_Call) Return ¶
func (_c *RedisClient_Del_Call) Return(_a0 *redis.IntCmd) *RedisClient_Del_Call
func (*RedisClient_Del_Call) Run ¶
func (_c *RedisClient_Del_Call) Run(run func(ctx context.Context, keys ...string)) *RedisClient_Del_Call
func (*RedisClient_Del_Call) RunAndReturn ¶
func (_c *RedisClient_Del_Call) RunAndReturn(run func(context.Context, ...string) *redis.IntCmd) *RedisClient_Del_Call
type RedisClient_Expecter ¶
type RedisClient_Expecter struct {
// contains filtered or unexported fields
}
func (*RedisClient_Expecter) Del ¶
func (_e *RedisClient_Expecter) Del(ctx interface{}, keys ...interface{}) *RedisClient_Del_Call
Del is a helper method to define mock.On call
- ctx context.Context
- keys ...string
func (*RedisClient_Expecter) HGetAll ¶
func (_e *RedisClient_Expecter) HGetAll(ctx interface{}, key interface{}) *RedisClient_HGetAll_Call
HGetAll is a helper method to define mock.On call
- ctx context.Context
- key string
func (*RedisClient_Expecter) HSet ¶
func (_e *RedisClient_Expecter) HSet(ctx interface{}, key interface{}, values ...interface{}) *RedisClient_HSet_Call
HSet is a helper method to define mock.On call
- ctx context.Context
- key string
- values ...interface{}
type RedisClient_HGetAll_Call ¶
RedisClient_HGetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HGetAll'
func (*RedisClient_HGetAll_Call) Return ¶
func (_c *RedisClient_HGetAll_Call) Return(_a0 *redis.MapStringStringCmd) *RedisClient_HGetAll_Call
func (*RedisClient_HGetAll_Call) Run ¶
func (_c *RedisClient_HGetAll_Call) Run(run func(ctx context.Context, key string)) *RedisClient_HGetAll_Call
func (*RedisClient_HGetAll_Call) RunAndReturn ¶
func (_c *RedisClient_HGetAll_Call) RunAndReturn(run func(context.Context, string) *redis.MapStringStringCmd) *RedisClient_HGetAll_Call
type RedisClient_HSet_Call ¶
RedisClient_HSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HSet'
func (*RedisClient_HSet_Call) Return ¶
func (_c *RedisClient_HSet_Call) Return(_a0 *redis.IntCmd) *RedisClient_HSet_Call
func (*RedisClient_HSet_Call) Run ¶
func (_c *RedisClient_HSet_Call) Run(run func(ctx context.Context, key string, values ...interface{})) *RedisClient_HSet_Call
func (*RedisClient_HSet_Call) RunAndReturn ¶
func (_c *RedisClient_HSet_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *redis.IntCmd) *RedisClient_HSet_Call