mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAerospikeClient

type MockAerospikeClient struct {
	mock.Mock
}

func (*MockAerospikeClient) Abort

func (*MockAerospikeClient) BatchDelete

func (m *MockAerospikeClient) BatchDelete(policy *aerov8.BatchPolicy, deletePolicy *aerov8.BatchDeletePolicy, keys []*aerov8.Key) ([]*aerov8.BatchRecord, aerov8.Error)

func (*MockAerospikeClient) BatchExecute

func (m *MockAerospikeClient) BatchExecute(policy *aerov8.BatchPolicy, udfPolicy *aerov8.BatchUDFPolicy, keys []*aerov8.Key, packageName, functionName string, argsUDF ...aerov8.Value) ([]*aerov8.BatchRecord, aerov8.Error)

func (*MockAerospikeClient) BatchExists

func (m *MockAerospikeClient) BatchExists(policy *aerov8.BatchPolicy, keys []*aerov8.Key) ([]bool, aerov8.Error)

func (*MockAerospikeClient) BatchGet

func (m *MockAerospikeClient) BatchGet(policy *aerov8.BatchPolicy, keys []*aerov8.Key, binNames ...string) ([]*aerov8.Record, aerov8.Error)

Batch

func (*MockAerospikeClient) BatchGetComplex

func (m *MockAerospikeClient) BatchGetComplex(policy *aerov8.BatchPolicy, records []*aerov8.BatchRead) aerov8.Error

func (*MockAerospikeClient) BatchGetHeader

func (m *MockAerospikeClient) BatchGetHeader(policy *aerov8.BatchPolicy, keys []*aerov8.Key) ([]*aerov8.Record, aerov8.Error)

func (*MockAerospikeClient) BatchGetOperate

func (m *MockAerospikeClient) BatchGetOperate(policy *aerov8.BatchPolicy, keys []*aerov8.Key, ops ...*aerov8.Operation) ([]*aerov8.Record, aerov8.Error)

func (*MockAerospikeClient) BatchOperate

func (m *MockAerospikeClient) BatchOperate(policy *aerov8.BatchPolicy, records []aerov8.BatchRecordIfc) aerov8.Error

func (*MockAerospikeClient) ChangePassword

func (m *MockAerospikeClient) ChangePassword(policy *aerov8.AdminPolicy, user, password string) aerov8.Error

func (*MockAerospikeClient) Close

func (m *MockAerospikeClient) Close()

func (*MockAerospikeClient) Cluster

func (m *MockAerospikeClient) Cluster() *aerov8.Cluster

func (*MockAerospikeClient) Commit

func (*MockAerospikeClient) CreateComplexIndex

func (m *MockAerospikeClient) CreateComplexIndex(policy *aerov8.WritePolicy, namespace, setName, indexName, binName string, indexType aerov8.IndexType, indexCollectionType aerov8.IndexCollectionType, ctx ...*aerov8.CDTContext) (*aerov8.IndexTask, aerov8.Error)

func (*MockAerospikeClient) CreateIndex

func (m *MockAerospikeClient) CreateIndex(policy *aerov8.WritePolicy, namespace, setName, indexName, binName string, indexType aerov8.IndexType) (*aerov8.IndexTask, aerov8.Error)

Indexing

func (*MockAerospikeClient) CreateRole

func (m *MockAerospikeClient) CreateRole(policy *aerov8.AdminPolicy, roleName string, privileges []aerov8.Privilege, whitelist []string, readQuota, writeQuota uint32) aerov8.Error

func (*MockAerospikeClient) CreateUser

func (m *MockAerospikeClient) CreateUser(policy *aerov8.AdminPolicy, user, password string, roles []string) aerov8.Error

Admin

func (*MockAerospikeClient) Delete

func (m *MockAerospikeClient) Delete(policy *aerov8.WritePolicy, key *aerov8.Key) (bool, aerov8.Error)

func (*MockAerospikeClient) DropIndex

func (m *MockAerospikeClient) DropIndex(policy *aerov8.WritePolicy, namespace, setName, indexName string) aerov8.Error

func (*MockAerospikeClient) DropRole

func (m *MockAerospikeClient) DropRole(policy *aerov8.AdminPolicy, roleName string) aerov8.Error

func (*MockAerospikeClient) DropUser

func (m *MockAerospikeClient) DropUser(policy *aerov8.AdminPolicy, user string) aerov8.Error

func (*MockAerospikeClient) Execute

func (m *MockAerospikeClient) Execute(policy *aerov8.WritePolicy, key *aerov8.Key, packageName, functionName string, argsExec ...aerov8.Value) (any, aerov8.Error)

UDF

func (*MockAerospikeClient) ExecuteUDF

func (m *MockAerospikeClient) ExecuteUDF(policy *aerov8.QueryPolicy, statement *aerov8.Statement, packageName, functionName string, functionArgs ...aerov8.Value) (*aerov8.ExecuteTask, aerov8.Error)

Execute UDF Query

func (*MockAerospikeClient) ExecuteUDFNode

func (m *MockAerospikeClient) ExecuteUDFNode(policy *aerov8.QueryPolicy, node *aerov8.Node, statement *aerov8.Statement, packageName, functionName string, functionArgs ...aerov8.Value) (*aerov8.ExecuteTask, aerov8.Error)

func (*MockAerospikeClient) Exists

func (m *MockAerospikeClient) Exists(policy *aerov8.BasePolicy, key *aerov8.Key) (bool, aerov8.Error)

func (*MockAerospikeClient) Get

func (m *MockAerospikeClient) Get(policy *aerov8.BasePolicy, key *aerov8.Key, binNames ...string) (*aerov8.Record, aerov8.Error)

func (*MockAerospikeClient) GetDefaultAdminPolicy

func (m *MockAerospikeClient) GetDefaultAdminPolicy() *aerov8.AdminPolicy

func (*MockAerospikeClient) GetDefaultBatchDeletePolicy

func (m *MockAerospikeClient) GetDefaultBatchDeletePolicy() *aerov8.BatchDeletePolicy

func (*MockAerospikeClient) GetDefaultBatchPolicy

func (m *MockAerospikeClient) GetDefaultBatchPolicy() *aerov8.BatchPolicy

func (*MockAerospikeClient) GetDefaultBatchReadPolicy

func (m *MockAerospikeClient) GetDefaultBatchReadPolicy() *aerov8.BatchReadPolicy

func (*MockAerospikeClient) GetDefaultBatchUDFPolicy

func (m *MockAerospikeClient) GetDefaultBatchUDFPolicy() *aerov8.BatchUDFPolicy

func (*MockAerospikeClient) GetDefaultBatchWritePolicy

func (m *MockAerospikeClient) GetDefaultBatchWritePolicy() *aerov8.BatchWritePolicy

func (*MockAerospikeClient) GetDefaultInfoPolicy

func (m *MockAerospikeClient) GetDefaultInfoPolicy() *aerov8.InfoPolicy

func (*MockAerospikeClient) GetDefaultPolicy

func (m *MockAerospikeClient) GetDefaultPolicy() *aerov8.BasePolicy

Policies Getters

func (*MockAerospikeClient) GetDefaultQueryPolicy

func (m *MockAerospikeClient) GetDefaultQueryPolicy() *aerov8.QueryPolicy

func (*MockAerospikeClient) GetDefaultScanPolicy

func (m *MockAerospikeClient) GetDefaultScanPolicy() *aerov8.ScanPolicy

func (*MockAerospikeClient) GetDefaultTxnRollPolicy

func (m *MockAerospikeClient) GetDefaultTxnRollPolicy() *aerov8.TxnRollPolicy

func (*MockAerospikeClient) GetDefaultTxnVerifyPolicy

func (m *MockAerospikeClient) GetDefaultTxnVerifyPolicy() *aerov8.TxnVerifyPolicy

func (*MockAerospikeClient) GetDefaultWritePolicy

func (m *MockAerospikeClient) GetDefaultWritePolicy() *aerov8.WritePolicy

func (*MockAerospikeClient) GetHeader

func (m *MockAerospikeClient) GetHeader(policy *aerov8.BasePolicy, key *aerov8.Key) (*aerov8.Record, aerov8.Error)

func (*MockAerospikeClient) GetNodeNames

func (m *MockAerospikeClient) GetNodeNames() []string

func (*MockAerospikeClient) GetNodes

func (m *MockAerospikeClient) GetNodes() []*aerov8.Node

Cluster/Nodes

func (*MockAerospikeClient) GrantPrivileges

func (m *MockAerospikeClient) GrantPrivileges(policy *aerov8.AdminPolicy, roleName string, privileges []aerov8.Privilege) aerov8.Error

func (*MockAerospikeClient) GrantRoles

func (m *MockAerospikeClient) GrantRoles(policy *aerov8.AdminPolicy, user string, roles []string) aerov8.Error

func (*MockAerospikeClient) IsConnected

func (m *MockAerospikeClient) IsConnected() bool

Connection management

func (*MockAerospikeClient) ListUDF

func (m *MockAerospikeClient) ListUDF(policy *aerov8.BasePolicy) ([]*aerov8.UDF, aerov8.Error)

func (*MockAerospikeClient) Operate

func (m *MockAerospikeClient) Operate(policy *aerov8.WritePolicy, key *aerov8.Key, operations ...*aerov8.Operation) (*aerov8.Record, aerov8.Error)

Operate

func (*MockAerospikeClient) Put

func (m *MockAerospikeClient) Put(policy *aerov8.WritePolicy, key *aerov8.Key, binMap aerov8.BinMap) aerov8.Error

CRUD

func (*MockAerospikeClient) PutBins

func (m *MockAerospikeClient) PutBins(policy *aerov8.WritePolicy, key *aerov8.Key, bins ...*aerov8.Bin) aerov8.Error

func (*MockAerospikeClient) Query

Query

func (*MockAerospikeClient) QueryExecute

func (m *MockAerospikeClient) QueryExecute(policy *aerov8.QueryPolicy, writePolicy *aerov8.WritePolicy, statement *aerov8.Statement, ops ...*aerov8.Operation) (*aerov8.ExecuteTask, aerov8.Error)

func (*MockAerospikeClient) QueryNode

func (m *MockAerospikeClient) QueryNode(policy *aerov8.QueryPolicy, node *aerov8.Node, statement *aerov8.Statement) (*aerov8.Recordset, aerov8.Error)

func (*MockAerospikeClient) QueryPartitions

func (m *MockAerospikeClient) QueryPartitions(policy *aerov8.QueryPolicy, statement *aerov8.Statement, partitionFilter *aerov8.PartitionFilter) (*aerov8.Recordset, aerov8.Error)

func (*MockAerospikeClient) QueryRole

func (m *MockAerospikeClient) QueryRole(policy *aerov8.AdminPolicy, role string) (*aerov8.Role, aerov8.Error)

func (*MockAerospikeClient) QueryRoles

func (m *MockAerospikeClient) QueryRoles(policy *aerov8.AdminPolicy) ([]*aerov8.Role, aerov8.Error)

func (*MockAerospikeClient) QueryUser

func (m *MockAerospikeClient) QueryUser(policy *aerov8.AdminPolicy, user string) (*aerov8.UserRoles, aerov8.Error)

func (*MockAerospikeClient) QueryUsers

func (m *MockAerospikeClient) QueryUsers(policy *aerov8.AdminPolicy) ([]*aerov8.UserRoles, aerov8.Error)

func (*MockAerospikeClient) RegisterUDF

func (m *MockAerospikeClient) RegisterUDF(policy *aerov8.WritePolicy, udfBody []byte, serverPath string, language aerov8.Language) (*aerov8.RegisterTask, aerov8.Error)

func (*MockAerospikeClient) RegisterUDFFromFile

func (m *MockAerospikeClient) RegisterUDFFromFile(policy *aerov8.WritePolicy, clientPath, serverPath string, language aerov8.Language) (*aerov8.RegisterTask, aerov8.Error)

func (*MockAerospikeClient) RemoveUDF

func (m *MockAerospikeClient) RemoveUDF(policy *aerov8.WritePolicy, udfName string) (*aerov8.RemoveTask, aerov8.Error)

func (*MockAerospikeClient) RevokePrivileges

func (m *MockAerospikeClient) RevokePrivileges(policy *aerov8.AdminPolicy, roleName string, privileges []aerov8.Privilege) aerov8.Error

func (*MockAerospikeClient) RevokeRoles

func (m *MockAerospikeClient) RevokeRoles(policy *aerov8.AdminPolicy, user string, roles []string) aerov8.Error

func (*MockAerospikeClient) ScanAll

func (m *MockAerospikeClient) ScanAll(policy *aerov8.ScanPolicy, namespace, setName string, binNames ...string) (*aerov8.Recordset, aerov8.Error)

Scan

func (*MockAerospikeClient) ScanNode

func (m *MockAerospikeClient) ScanNode(policy *aerov8.ScanPolicy, node *aerov8.Node, namespace, setName string, binNames ...string) (*aerov8.Recordset, aerov8.Error)

func (*MockAerospikeClient) ScanPartitions

func (m *MockAerospikeClient) ScanPartitions(policy *aerov8.ScanPolicy, partitionFilter *aerov8.PartitionFilter, namespace, setName string, binNames ...string) (*aerov8.Recordset, aerov8.Error)

func (*MockAerospikeClient) SetDefaultAdminPolicy

func (m *MockAerospikeClient) SetDefaultAdminPolicy(policy *aerov8.AdminPolicy)

func (*MockAerospikeClient) SetDefaultBatchDeletePolicy

func (m *MockAerospikeClient) SetDefaultBatchDeletePolicy(policy *aerov8.BatchDeletePolicy)

func (*MockAerospikeClient) SetDefaultBatchPolicy

func (m *MockAerospikeClient) SetDefaultBatchPolicy(policy *aerov8.BatchPolicy)

func (*MockAerospikeClient) SetDefaultBatchReadPolicy

func (m *MockAerospikeClient) SetDefaultBatchReadPolicy(policy *aerov8.BatchReadPolicy)

func (*MockAerospikeClient) SetDefaultBatchUDFPolicy

func (m *MockAerospikeClient) SetDefaultBatchUDFPolicy(policy *aerov8.BatchUDFPolicy)

func (*MockAerospikeClient) SetDefaultBatchWritePolicy

func (m *MockAerospikeClient) SetDefaultBatchWritePolicy(policy *aerov8.BatchWritePolicy)

func (*MockAerospikeClient) SetDefaultInfoPolicy

func (m *MockAerospikeClient) SetDefaultInfoPolicy(policy *aerov8.InfoPolicy)

func (*MockAerospikeClient) SetDefaultPolicy

func (m *MockAerospikeClient) SetDefaultPolicy(policy *aerov8.BasePolicy)

Policies Setters

func (*MockAerospikeClient) SetDefaultQueryPolicy

func (m *MockAerospikeClient) SetDefaultQueryPolicy(policy *aerov8.QueryPolicy)

func (*MockAerospikeClient) SetDefaultScanPolicy

func (m *MockAerospikeClient) SetDefaultScanPolicy(policy *aerov8.ScanPolicy)

func (*MockAerospikeClient) SetDefaultTxnRollPolicy

func (m *MockAerospikeClient) SetDefaultTxnRollPolicy(policy *aerov8.TxnRollPolicy)

func (*MockAerospikeClient) SetDefaultTxnVerifyPolicy

func (m *MockAerospikeClient) SetDefaultTxnVerifyPolicy(policy *aerov8.TxnVerifyPolicy)

func (*MockAerospikeClient) SetDefaultWritePolicy

func (m *MockAerospikeClient) SetDefaultWritePolicy(policy *aerov8.WritePolicy)

func (*MockAerospikeClient) SetQuotas

func (m *MockAerospikeClient) SetQuotas(policy *aerov8.AdminPolicy, roleName string, readQuota, writeQuota uint32) aerov8.Error

func (*MockAerospikeClient) SetWhitelist

func (m *MockAerospikeClient) SetWhitelist(policy *aerov8.AdminPolicy, roleName string, whitelist []string) aerov8.Error

func (*MockAerospikeClient) SetXDRFilter

func (m *MockAerospikeClient) SetXDRFilter(policy *aerov8.InfoPolicy, datacenter, namespace string, filter *aerov8.Expression) aerov8.Error

func (*MockAerospikeClient) Stats

func (m *MockAerospikeClient) Stats() (map[string]any, aerov8.Error)

func (*MockAerospikeClient) String

func (m *MockAerospikeClient) String() string

func (*MockAerospikeClient) Touch

func (m *MockAerospikeClient) Touch(policy *aerov8.WritePolicy, key *aerov8.Key) aerov8.Error

func (*MockAerospikeClient) WarmUp

func (m *MockAerospikeClient) WarmUp(count int) (int, aerov8.Error)

type MockElasticSearchHelper

type MockElasticSearchHelper struct {
	mock.Mock
}

func (*MockElasticSearchHelper) Bulk

func (*MockElasticSearchHelper) Count

func (*MockElasticSearchHelper) CountByQuery

func (*MockElasticSearchHelper) Delete

func (m *MockElasticSearchHelper) Delete(ctx context.Context, cluster string, index string, docID string) (elasticsearch.DeleteResponse, error)

func (*MockElasticSearchHelper) DeleteByQuery

func (m *MockElasticSearchHelper) DeleteByQuery(ctx context.Context, cluster string, index string, query interface{}) (elasticsearch.DeleteByQueryResponse, error)

func (*MockElasticSearchHelper) IncrementalSearch

func (m *MockElasticSearchHelper) IncrementalSearch(ctx context.Context, cluster string, index string, searchQuery elasticsearch.SearchQuery) (elasticsearch.SearchResponse, error)

func (*MockElasticSearchHelper) Index

func (m *MockElasticSearchHelper) Index(ctx context.Context, cluster string, index string, docID string, document interface{}) (elasticsearch.IndexResponse, error)

func (*MockElasticSearchHelper) RawCountQuery

func (m *MockElasticSearchHelper) RawCountQuery(ctx context.Context, cluster, index, query string) (elasticsearch.CountResponse, error)

func (*MockElasticSearchHelper) RawSearchQuery

func (m *MockElasticSearchHelper) RawSearchQuery(ctx context.Context, cluster, index, query string) (elasticsearch.SearchResponse, error)

func (*MockElasticSearchHelper) Search

func (*MockElasticSearchHelper) SearchByDocId

func (m *MockElasticSearchHelper) SearchByDocId(ctx context.Context, cluster string, index string, docId string) (elasticsearch.SearchByDocIdResponse, error)

func (*MockElasticSearchHelper) Update

func (m *MockElasticSearchHelper) Update(ctx context.Context, cluster string, index string, docID string, document interface{}) (elasticsearch.UpdateResponse, error)

func (*MockElasticSearchHelper) UpdateByQuery

func (m *MockElasticSearchHelper) UpdateByQuery(ctx context.Context, cluster string, index string, query interface{}) (elasticsearch.UpdateByQueryResponse, error)

type MockMemcachedClient

type MockMemcachedClient struct {
	mock.Mock
}

func (*MockMemcachedClient) Add

func (m *MockMemcachedClient) Add(item *memcache.Item) error

func (*MockMemcachedClient) Append

func (m *MockMemcachedClient) Append(item *memcache.Item) error

func (*MockMemcachedClient) Close

func (m *MockMemcachedClient) Close() error

func (*MockMemcachedClient) CompareAndSwap

func (m *MockMemcachedClient) CompareAndSwap(item *memcache.Item) error

func (*MockMemcachedClient) Decrement

func (m *MockMemcachedClient) Decrement(key string, delta uint64) (uint64, error)

func (*MockMemcachedClient) Delete

func (m *MockMemcachedClient) Delete(key string) error

func (*MockMemcachedClient) DeleteAll

func (m *MockMemcachedClient) DeleteAll() error

func (*MockMemcachedClient) FlushAll

func (m *MockMemcachedClient) FlushAll() error

func (*MockMemcachedClient) Get

func (m *MockMemcachedClient) Get(key string) (*memcache.Item, error)

func (*MockMemcachedClient) GetAndTouch

func (m *MockMemcachedClient) GetAndTouch(key string, expiration int32) (*memcache.Item, error)

func (*MockMemcachedClient) GetMulti

func (m *MockMemcachedClient) GetMulti(keys []string) (map[string]*memcache.Item, error)

func (*MockMemcachedClient) Increment

func (m *MockMemcachedClient) Increment(key string, delta uint64) (uint64, error)

func (*MockMemcachedClient) Ping

func (m *MockMemcachedClient) Ping() error

func (*MockMemcachedClient) Prepend

func (m *MockMemcachedClient) Prepend(item *memcache.Item) error

func (*MockMemcachedClient) Replace

func (m *MockMemcachedClient) Replace(item *memcache.Item) error

func (*MockMemcachedClient) Set

func (m *MockMemcachedClient) Set(item *memcache.Item) error

func (*MockMemcachedClient) Touch

func (m *MockMemcachedClient) Touch(key string, seconds int32) error

type MockRedisClient

type MockRedisClient struct {
	mock.Mock
}

func (*MockRedisClient) Append

func (m *MockRedisClient) Append(ctx context.Context, key, value string) *redisv9.IntCmd

func (*MockRedisClient) Close

func (m *MockRedisClient) Close() error

func (*MockRedisClient) Decr

func (m *MockRedisClient) Decr(ctx context.Context, key string) *redisv9.IntCmd

func (*MockRedisClient) DecrBy

func (m *MockRedisClient) DecrBy(ctx context.Context, key string, value int64) *redisv9.IntCmd

func (*MockRedisClient) Del

func (m *MockRedisClient) Del(ctx context.Context, keys ...string) *redisv9.IntCmd

func (*MockRedisClient) Eval

func (m *MockRedisClient) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *redisv9.Cmd

func (*MockRedisClient) Exists

func (m *MockRedisClient) Exists(ctx context.Context, keys ...string) *redisv9.IntCmd

func (*MockRedisClient) Expire

func (m *MockRedisClient) Expire(ctx context.Context, key string, expiration time.Duration) *redisv9.BoolCmd

func (*MockRedisClient) Get

func (*MockRedisClient) GetSet

func (m *MockRedisClient) GetSet(ctx context.Context, key string, value interface{}) *redisv9.StringCmd

func (*MockRedisClient) HDel

func (m *MockRedisClient) HDel(ctx context.Context, key string, fields ...string) *redisv9.IntCmd

func (*MockRedisClient) HExists

func (m *MockRedisClient) HExists(ctx context.Context, key, field string) *redisv9.BoolCmd

func (*MockRedisClient) HGet

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

func (*MockRedisClient) HGetAll

func (*MockRedisClient) HIncrBy

func (m *MockRedisClient) HIncrBy(ctx context.Context, key, field string, incr int64) *redisv9.IntCmd

func (*MockRedisClient) HLen

func (m *MockRedisClient) HLen(ctx context.Context, key string) *redisv9.IntCmd

func (*MockRedisClient) HMGet

func (m *MockRedisClient) HMGet(ctx context.Context, key string, fields ...string) *redisv9.SliceCmd

func (*MockRedisClient) HMSet

func (m *MockRedisClient) HMSet(ctx context.Context, key string, values ...interface{}) *redisv9.BoolCmd

func (*MockRedisClient) HSet

func (m *MockRedisClient) HSet(ctx context.Context, key string, values ...interface{}) *redisv9.IntCmd

func (*MockRedisClient) Incr

func (m *MockRedisClient) Incr(ctx context.Context, key string) *redisv9.IntCmd

func (*MockRedisClient) IncrBy

func (m *MockRedisClient) IncrBy(ctx context.Context, key string, value int64) *redisv9.IntCmd

func (*MockRedisClient) Keys

func (*MockRedisClient) LLen

func (m *MockRedisClient) LLen(ctx context.Context, key string) *redisv9.IntCmd

func (*MockRedisClient) LPop

func (*MockRedisClient) LPush

func (m *MockRedisClient) LPush(ctx context.Context, key string, values ...interface{}) *redisv9.IntCmd

func (*MockRedisClient) LRange

func (m *MockRedisClient) LRange(ctx context.Context, key string, start, stop int64) *redisv9.StringSliceCmd

func (*MockRedisClient) LRem

func (m *MockRedisClient) LRem(ctx context.Context, key string, count int64, value interface{}) *redisv9.IntCmd

func (*MockRedisClient) LTrim

func (m *MockRedisClient) LTrim(ctx context.Context, key string, start, stop int64) *redisv9.StatusCmd

func (*MockRedisClient) MGet

func (m *MockRedisClient) MGet(ctx context.Context, keys ...string) *redisv9.SliceCmd

func (*MockRedisClient) MSet

func (m *MockRedisClient) MSet(ctx context.Context, values ...interface{}) *redisv9.StatusCmd

func (*MockRedisClient) Persist

func (m *MockRedisClient) Persist(ctx context.Context, key string) *redisv9.BoolCmd

func (*MockRedisClient) Ping

func (*MockRedisClient) Publish

func (m *MockRedisClient) Publish(ctx context.Context, channel string, message interface{}) *redisv9.IntCmd

func (*MockRedisClient) RPop

func (*MockRedisClient) RPush

func (m *MockRedisClient) RPush(ctx context.Context, key string, values ...interface{}) *redisv9.IntCmd

func (*MockRedisClient) SAdd

func (m *MockRedisClient) SAdd(ctx context.Context, key string, members ...interface{}) *redisv9.IntCmd

func (*MockRedisClient) SIsMember

func (m *MockRedisClient) SIsMember(ctx context.Context, key string, member interface{}) *redisv9.BoolCmd

func (*MockRedisClient) SMembers

func (*MockRedisClient) SRem

func (m *MockRedisClient) SRem(ctx context.Context, key string, members ...interface{}) *redisv9.IntCmd

func (*MockRedisClient) Set

func (m *MockRedisClient) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redisv9.StatusCmd

func (*MockRedisClient) SetNX

func (m *MockRedisClient) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *redisv9.BoolCmd

func (*MockRedisClient) StrLen

func (m *MockRedisClient) StrLen(ctx context.Context, key string) *redisv9.IntCmd

func (*MockRedisClient) Subscribe

func (m *MockRedisClient) Subscribe(ctx context.Context, channels ...string) *redisv9.PubSub

func (*MockRedisClient) TTL

func (*MockRedisClient) ZAdd

func (m *MockRedisClient) ZAdd(ctx context.Context, key string, members ...redisv9.Z) *redisv9.IntCmd

func (*MockRedisClient) ZRange

func (m *MockRedisClient) ZRange(ctx context.Context, key string, start, stop int64) *redisv9.StringSliceCmd

func (*MockRedisClient) ZRem

func (m *MockRedisClient) ZRem(ctx context.Context, key string, members ...interface{}) *redisv9.IntCmd

func (*MockRedisClient) ZRemRangeByScore

func (m *MockRedisClient) ZRemRangeByScore(ctx context.Context, key, min, max string) *redisv9.IntCmd

Jump to

Keyboard shortcuts

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