redis

package
v0.0.0-...-af574e6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package redis is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNil means that the key that you specified is empty in redis
	ErrNil    = errors.New("nil returned")
	ErrFailed = errors.New("operation failed")
)

Functions

func NewRedigo

func NewRedigo(redisConfig ConfigOptions) *redigo

NewRedigo constructs a new Redis-client using Redigo library

Types

type ConfigOptions

type ConfigOptions struct {
	Address   string
	Timeout   int
	MaxIdle   int
	MaxActive int
}

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

func (m *MockRedis) Decr(arg0 string) (int64, error)

Decr mocks base method

func (*MockRedis) Del

func (m *MockRedis) Del(arg0 ...interface{}) (int64, error)

Del 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) Exists

func (m *MockRedis) Exists(arg0 string) (bool, error)

Exists mocks base method

func (*MockRedis) Expire

func (m *MockRedis) Expire(arg0 string, arg1 int) (bool, error)

Expire mocks base method

func (*MockRedis) ExpireAt

func (m *MockRedis) ExpireAt(arg0 string, arg1 int64) (bool, error)

ExpireAt mocks base method

func (*MockRedis) Get

func (m *MockRedis) Get(arg0 string) ([]byte, error)

Get mocks base method

func (*MockRedis) HDel

func (m *MockRedis) HDel(arg0 string, arg1 ...string) (int64, error)

HDel mocks base method

func (*MockRedis) HExists

func (m *MockRedis) HExists(arg0, arg1 string) (bool, error)

HExists mocks base method

func (*MockRedis) HGet

func (m *MockRedis) HGet(arg0, arg1 string) ([]byte, error)

HGet mocks base method

func (*MockRedis) HGetAll

func (m *MockRedis) HGetAll(arg0 string) (map[string]string, error)

HGetAll mocks base method

func (*MockRedis) HKeys

func (m *MockRedis) HKeys(arg0 string) ([]string, error)

HKeys mocks base method

func (*MockRedis) HMGet

func (m *MockRedis) HMGet(arg0 string, arg1 ...string) ([][]byte, error)

HMGet mocks base method

func (*MockRedis) HSet

func (m *MockRedis) HSet(arg0, arg1, arg2 string) (bool, error)

HSet mocks base method

func (*MockRedis) Incr

func (m *MockRedis) Incr(arg0 string) (int64, error)

Incr mocks base method

func (*MockRedis) Set

func (m *MockRedis) Set(arg0, arg1 string) error

Set mocks base method

func (*MockRedis) Setex

func (m *MockRedis) Setex(arg0 string, arg1 int, arg2 string) error

Setex mocks base method

func (*MockRedis) Setnx

func (m *MockRedis) Setnx(arg0 string, arg1 int, arg2 string) (bool, error)

Setnx mocks base method

func (*MockRedis) TTL

func (m *MockRedis) TTL(arg0 string) (int64, error)

TTL 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) Decr

func (mr *MockRedisMockRecorder) Decr(arg0 interface{}) *gomock.Call

Decr indicates an expected call of Decr

func (*MockRedisMockRecorder) Del

func (mr *MockRedisMockRecorder) Del(arg0 ...interface{}) *gomock.Call

Del indicates an expected call of Del

func (*MockRedisMockRecorder) Exists

func (mr *MockRedisMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists

func (*MockRedisMockRecorder) Expire

func (mr *MockRedisMockRecorder) Expire(arg0, arg1 interface{}) *gomock.Call

Expire indicates an expected call of Expire

func (*MockRedisMockRecorder) ExpireAt

func (mr *MockRedisMockRecorder) ExpireAt(arg0, arg1 interface{}) *gomock.Call

ExpireAt indicates an expected call of ExpireAt

func (*MockRedisMockRecorder) Get

func (mr *MockRedisMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockRedisMockRecorder) HDel

func (mr *MockRedisMockRecorder) HDel(arg0 interface{}, arg1 ...interface{}) *gomock.Call

HDel indicates an expected call of HDel

func (*MockRedisMockRecorder) HExists

func (mr *MockRedisMockRecorder) HExists(arg0, arg1 interface{}) *gomock.Call

HExists indicates an expected call of HExists

func (*MockRedisMockRecorder) HGet

func (mr *MockRedisMockRecorder) HGet(arg0, arg1 interface{}) *gomock.Call

HGet indicates an expected call of HGet

func (*MockRedisMockRecorder) HGetAll

func (mr *MockRedisMockRecorder) HGetAll(arg0 interface{}) *gomock.Call

HGetAll indicates an expected call of HGetAll

func (*MockRedisMockRecorder) HKeys

func (mr *MockRedisMockRecorder) HKeys(arg0 interface{}) *gomock.Call

HKeys indicates an expected call of HKeys

func (*MockRedisMockRecorder) HMGet

func (mr *MockRedisMockRecorder) HMGet(arg0 interface{}, arg1 ...interface{}) *gomock.Call

HMGet indicates an expected call of HMGet

func (*MockRedisMockRecorder) HSet

func (mr *MockRedisMockRecorder) HSet(arg0, arg1, arg2 interface{}) *gomock.Call

HSet indicates an expected call of HSet

func (*MockRedisMockRecorder) Incr

func (mr *MockRedisMockRecorder) Incr(arg0 interface{}) *gomock.Call

Incr indicates an expected call of Incr

func (*MockRedisMockRecorder) Set

func (mr *MockRedisMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set

func (*MockRedisMockRecorder) Setex

func (mr *MockRedisMockRecorder) Setex(arg0, arg1, arg2 interface{}) *gomock.Call

Setex indicates an expected call of Setex

func (*MockRedisMockRecorder) Setnx

func (mr *MockRedisMockRecorder) Setnx(arg0, arg1, arg2 interface{}) *gomock.Call

Setnx indicates an expected call of Setnx

func (*MockRedisMockRecorder) TTL

func (mr *MockRedisMockRecorder) TTL(arg0 interface{}) *gomock.Call

TTL indicates an expected call of TTL

Jump to

Keyboard shortcuts

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