db

package
v0.0.0-...-15bed1d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRedisClient

type MockRedisClient struct {
	// contains filtered or unexported fields
}

MockRedisClient is a mock of RedisClient interface.

func NewMockRedisClient

func NewMockRedisClient(ctrl *gomock.Controller) *MockRedisClient

NewMockRedisClient creates a new mock instance.

func (*MockRedisClient) DBSize

func (m *MockRedisClient) DBSize(ctx context.Context) (int64, error)

DBSize mocks base method.

func (*MockRedisClient) Del

func (m *MockRedisClient) Del(ctx context.Context, key string) (int64, error)

Del mocks base method.

func (*MockRedisClient) EXPECT

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

func (*MockRedisClient) Exists

func (m *MockRedisClient) Exists(ctx context.Context, key string) (int64, error)

Exists mocks base method.

func (*MockRedisClient) Expire

func (m *MockRedisClient) Expire(ctx context.Context, key string, duration time.Duration) (bool, error)

Expire mocks base method.

func (*MockRedisClient) Get

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

Get mocks base method.

func (*MockRedisClient) HExists

func (m *MockRedisClient) HExists(ctx context.Context, key, field string) (bool, error)

HExists mocks base method.

func (*MockRedisClient) HGet

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

HGet mocks base method.

func (*MockRedisClient) HGetAll

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

HGetAll mocks base method.

func (*MockRedisClient) HIncrBy

func (m *MockRedisClient) HIncrBy(ctx context.Context, key, field string, value int64) (int64, error)

HIncrBy mocks base method.

func (*MockRedisClient) HIncrByFloat

func (m *MockRedisClient) HIncrByFloat(ctx context.Context, key, field string, value float64) (float64, error)

HIncrByFloat mocks base method.

func (*MockRedisClient) HKeys

func (m *MockRedisClient) HKeys(ctx context.Context, key string) ([]string, error)

HKeys mocks base method.

func (*MockRedisClient) HMGets

func (m *MockRedisClient) HMGets(ctx context.Context, key string, fields ...string) ([]interface{}, error)

HMGets mocks base method.

func (*MockRedisClient) HMSet

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

HMSet mocks base method.

func (*MockRedisClient) HSet

func (m *MockRedisClient) HSet(ctx context.Context, key, field, value string) error

HSet mocks base method.

func (*MockRedisClient) HSetNX

func (m *MockRedisClient) HSetNX(ctx context.Context, key, field, value string) (bool, error)

HSetNX mocks base method.

func (*MockRedisClient) HVals

func (m *MockRedisClient) HVals(ctx context.Context, key string) ([]string, error)

HVals mocks base method.

func (*MockRedisClient) Info

func (m *MockRedisClient) Info(ctx context.Context, section string) (string, error)

Info mocks base method.

func (*MockRedisClient) Ping

func (m *MockRedisClient) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockRedisClient) Set

func (m *MockRedisClient) Set(ctx context.Context, key, value string, expiration time.Duration) error

Set mocks base method.

func (*MockRedisClient) SetNX

func (m *MockRedisClient) SetNX(ctx context.Context, key, value string, expiration time.Duration) (bool, error)

SetNX mocks base method.

func (*MockRedisClient) SetPrefix

func (m *MockRedisClient) SetPrefix(prefix string) redis.RedisClient

SetTable mocks base method.

func (*MockRedisClient) SetSep

func (m *MockRedisClient) SetSep(sep string) redis.RedisClient

SetSep mocks base method.

type MockRedisClientMockRecorder

type MockRedisClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockRedisClientMockRecorder is the mock recorder for MockRedisClient.

func (*MockRedisClientMockRecorder) DBSize

func (mr *MockRedisClientMockRecorder) DBSize(ctx interface{}) *gomock.Call

DBSize indicates an expected call of DBSize.

func (*MockRedisClientMockRecorder) Del

func (mr *MockRedisClientMockRecorder) Del(ctx, key interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockRedisClientMockRecorder) Exists

func (mr *MockRedisClientMockRecorder) Exists(ctx, key interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockRedisClientMockRecorder) Expire

func (mr *MockRedisClientMockRecorder) Expire(ctx, key, duration interface{}) *gomock.Call

Expire indicates an expected call of Expire.

func (*MockRedisClientMockRecorder) Get

func (mr *MockRedisClientMockRecorder) Get(ctx, key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRedisClientMockRecorder) HExists

func (mr *MockRedisClientMockRecorder) HExists(ctx, key, field interface{}) *gomock.Call

HExists indicates an expected call of HExists.

func (*MockRedisClientMockRecorder) HGet

func (mr *MockRedisClientMockRecorder) HGet(ctx, key, field interface{}) *gomock.Call

HGet indicates an expected call of HGet.

func (*MockRedisClientMockRecorder) HGetAll

func (mr *MockRedisClientMockRecorder) HGetAll(ctx, key interface{}) *gomock.Call

HGetAll indicates an expected call of HGetAll.

func (*MockRedisClientMockRecorder) HIncrBy

func (mr *MockRedisClientMockRecorder) HIncrBy(ctx, key, field, value interface{}) *gomock.Call

HIncrBy indicates an expected call of HIncrBy.

func (*MockRedisClientMockRecorder) HIncrByFloat

func (mr *MockRedisClientMockRecorder) HIncrByFloat(ctx, key, field, value interface{}) *gomock.Call

HIncrByFloat indicates an expected call of HIncrByFloat.

func (*MockRedisClientMockRecorder) HKeys

func (mr *MockRedisClientMockRecorder) HKeys(ctx, key interface{}) *gomock.Call

HKeys indicates an expected call of HKeys.

func (*MockRedisClientMockRecorder) HMGets

func (mr *MockRedisClientMockRecorder) HMGets(ctx, key interface{}, fields ...interface{}) *gomock.Call

HMGets indicates an expected call of HMGets.

func (*MockRedisClientMockRecorder) HMSet

func (mr *MockRedisClientMockRecorder) HMSet(ctx, key, fields interface{}) *gomock.Call

HMSet indicates an expected call of HMSet.

func (*MockRedisClientMockRecorder) HSet

func (mr *MockRedisClientMockRecorder) HSet(ctx, key, field, value interface{}) *gomock.Call

HSet indicates an expected call of HSet.

func (*MockRedisClientMockRecorder) HSetNX

func (mr *MockRedisClientMockRecorder) HSetNX(ctx, key, field, value interface{}) *gomock.Call

HSetNX indicates an expected call of HSetNX.

func (*MockRedisClientMockRecorder) HVals

func (mr *MockRedisClientMockRecorder) HVals(ctx, key interface{}) *gomock.Call

HVals indicates an expected call of HVals.

func (*MockRedisClientMockRecorder) Info

func (mr *MockRedisClientMockRecorder) Info(ctx, section interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockRedisClientMockRecorder) Ping

func (mr *MockRedisClientMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockRedisClientMockRecorder) Set

func (mr *MockRedisClientMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockRedisClientMockRecorder) SetNX

func (mr *MockRedisClientMockRecorder) SetNX(ctx, key, value, expiration interface{}) *gomock.Call

SetNX indicates an expected call of SetNX.

func (*MockRedisClientMockRecorder) SetSep

func (mr *MockRedisClientMockRecorder) SetSep(sep interface{}) *gomock.Call

SetSep indicates an expected call of SetSep.

func (*MockRedisClientMockRecorder) SetTable

func (mr *MockRedisClientMockRecorder) SetTable(prefix interface{}) *gomock.Call

SetTable indicates an expected call of SetTable.

Jump to

Keyboard shortcuts

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