redismock

package
v0.0.0-...-e31961d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package redismock is a generated GoMock package.

Index

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) Close

func (m *MockRedis) Close() error

Close mocks base method

func (*MockRedis) Delete

func (m *MockRedis) Delete(ctx context.Context, key string) (int, error)

Delete mocks base method

func (*MockRedis) EXPECT

func (m *MockRedis) EXPECT() *MockRedisMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRedis) Expire

func (m *MockRedis) Expire(ctx context.Context, key string, duration int) (int, error)

Expire mocks base method

func (*MockRedis) Get

func (m *MockRedis) Get(ctx context.Context, key string) (string, error)

Get mocks base method

func (*MockRedis) HDel

func (m *MockRedis) HDel(ctx context.Context, key string, fields ...string) (int, error)

HDel mocks base method

func (*MockRedis) HGet

func (m *MockRedis) HGet(ctx context.Context, key, field string) (string, error)

HGet mocks base method

func (*MockRedis) HGetAll

func (m *MockRedis) HGetAll(ctx context.Context, key string) (map[string]string, error)

HGetAll mocks base method

func (*MockRedis) HMGet

func (m *MockRedis) HMGet(ctx context.Context, key string, fields ...string) ([]string, error)

HMGet mocks base method

func (*MockRedis) HMSet

func (m *MockRedis) HMSet(ctx context.Context, key string, kv map[string]interface{}) (string, error)

HMSet mocks base method

func (*MockRedis) HSet

func (m *MockRedis) HSet(ctx context.Context, key, field string, value interface{}) (int, error)

HSet 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) Increment

func (m *MockRedis) Increment(ctx context.Context, key string) (int, error)

Increment mocks base method

func (*MockRedis) IncrementBy

func (m *MockRedis) IncrementBy(ctx context.Context, key string, amount int) (int, error)

IncrementBy mocks base method

func (*MockRedis) IsErrNil

func (m *MockRedis) IsErrNil(err error) bool

IsErrNil mocks base method

func (*MockRedis) IsResponseOK

func (m *MockRedis) IsResponseOK(result string) bool

IsResponseOK mocks base method

func (*MockRedis) LIndex

func (m *MockRedis) LIndex(ctx context.Context, key string, index int) (string, error)

LIndex mocks base method

func (*MockRedis) LLen

func (m *MockRedis) LLen(ctx context.Context, key string) (int, error)

LLen mocks base method

func (*MockRedis) LPop

func (m *MockRedis) LPop(ctx context.Context, key string) (string, error)

LPop mocks base method

func (*MockRedis) LPush

func (m *MockRedis) LPush(ctx context.Context, key string, values ...interface{}) (int, error)

LPush mocks base method

func (*MockRedis) LPushX

func (m *MockRedis) LPushX(ctx context.Context, key string, values ...interface{}) (int, error)

LPushX mocks base method

func (*MockRedis) LRem

func (m *MockRedis) LRem(ctx context.Context, key, value string, count int) (int, error)

LRem mocks base method

func (*MockRedis) LSet

func (m *MockRedis) LSet(ctx context.Context, key, value string, index int) (int, error)

LSet mocks base method

func (*MockRedis) LTrim

func (m *MockRedis) LTrim(ctd context.Context, key string, start, stop int) (string, error)

LTrim mocks base method

func (*MockRedis) MGet

func (m *MockRedis) MGet(ctx context.Context, keys ...string) ([]string, error)

MGet mocks base method

func (*MockRedis) MSet

func (m *MockRedis) MSet(ctx context.Context, pairs ...interface{}) (string, error)

MSet mocks base method

func (*MockRedis) Set

func (m *MockRedis) Set(ctx context.Context, key string, value interface{}) (string, error)

Set mocks base method

func (*MockRedis) SetEX

func (m *MockRedis) SetEX(ctx context.Context, key string, value interface{}, expire int) (string, error)

SetEX mocks base method

func (*MockRedis) SetNX

func (m *MockRedis) SetNX(ctx context.Context, key string, value interface{}, expire int) (int, error)

SetNX 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL