Documentation ¶
Index ¶
- type Connector
- type Flusher
- type KeyValue
- func (_m *KeyValue) Decrement(ctx context.Context, key string) (int64, error)
- func (_m *KeyValue) Delete(ctx context.Context, key string) error
- func (_m *KeyValue) DeleteKeys(ctx context.Context, keys []string) (int64, error)
- func (_m *KeyValue) DeleteScanMatch(ctx context.Context, pattern string) (int64, error)
- func (_m *KeyValue) Exists(ctx context.Context, key string) (bool, error)
- func (_m *KeyValue) Expire(ctx context.Context, key string, ttl time.Duration) error
- func (_m *KeyValue) Get(ctx context.Context, key string) (string, error)
- func (_m *KeyValue) GetKeysAndValuesWithFilter(ctx context.Context, pattern string) (map[string]interface{}, error)
- func (_m *KeyValue) GetKeysWithOpts(ctx context.Context, searchStr string, cursors map[string]uint64, count int64) ([]string, map[string]uint64, bool, error)
- func (_m *KeyValue) GetMulti(ctx context.Context, keys []string) ([]interface{}, error)
- func (_m *KeyValue) Increment(ctx context.Context, key string) (int64, error)
- func (_m *KeyValue) Keys(ctx context.Context, pattern string) ([]string, error)
- func (_m *KeyValue) Set(ctx context.Context, key string, value string, ttl time.Duration) error
- func (_m *KeyValue) SetIfNotExist(ctx context.Context, key string, value string, expiration time.Duration) (bool, error)
- func (_m *KeyValue) TTL(ctx context.Context, key string) (int64, error)
- type List
- func (_m *List) Append(ctx context.Context, pipelined bool, key string, values ...[]byte) error
- func (_m *List) Length(ctx context.Context, key string) (int64, error)
- func (_m *List) Pop(ctx context.Context, key string, stop int64) ([]string, error)
- func (_m *List) Prepend(ctx context.Context, pipelined bool, key string, values ...[]byte) error
- func (_m *List) Range(ctx context.Context, key string, start int64, stop int64) ([]string, error)
- func (_m *List) Remove(ctx context.Context, key string, count int64, element interface{}) (int64, error)
- type Message
- type Option
- type Queue
- type Set
- func (_m *Set) AddMember(ctx context.Context, key string, member string) error
- func (_m *Set) IsMember(ctx context.Context, key string, member string) (bool, error)
- func (_m *Set) Members(ctx context.Context, key string) ([]string, error)
- func (_m *Set) RemoveMember(ctx context.Context, key string, member string) error
- type SortedSet
- func (_m *SortedSet) AddScoredMember(ctx context.Context, key string, member string, score float64) (int64, error)
- func (_m *SortedSet) GetMembersByScoreRange(ctx context.Context, key string, minScore string, maxScore string) ([]interface{}, []float64, error)
- func (_m *SortedSet) RemoveMembersByScoreRange(ctx context.Context, key string, minScore string, maxScore string) (int64, error)
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
Connector is an autogenerated mock type for the Connector type
func NewConnector ¶
NewConnector creates a new instance of Connector. 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 (*Connector) Disconnect ¶
Disconnect provides a mock function with given fields: _a0
type Flusher ¶
Flusher is an autogenerated mock type for the Flusher type
func NewFlusher ¶
NewFlusher creates a new instance of Flusher. 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.
type KeyValue ¶
KeyValue is an autogenerated mock type for the KeyValue type
func NewKeyValue ¶
NewKeyValue creates a new instance of KeyValue. 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 (*KeyValue) DeleteKeys ¶
DeleteKeys provides a mock function with given fields: ctx, keys
func (*KeyValue) DeleteScanMatch ¶
DeleteScanMatch provides a mock function with given fields: ctx, pattern
func (*KeyValue) GetKeysAndValuesWithFilter ¶
func (_m *KeyValue) GetKeysAndValuesWithFilter(ctx context.Context, pattern string) (map[string]interface{}, error)
GetKeysAndValuesWithFilter provides a mock function with given fields: ctx, pattern
func (*KeyValue) GetKeysWithOpts ¶
func (_m *KeyValue) GetKeysWithOpts(ctx context.Context, searchStr string, cursors map[string]uint64, count int64) ([]string, map[string]uint64, bool, error)
GetKeysWithOpts provides a mock function with given fields: ctx, searchStr, cursors, count
type List ¶
List is an autogenerated mock type for the List type
func NewList ¶
NewList creates a new instance of List. 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 (*List) Append ¶
Append provides a mock function with given fields: ctx, pipelined, key, values
func (*List) Prepend ¶
Prepend provides a mock function with given fields: ctx, pipelined, key, values
type Message ¶
Message is an autogenerated mock type for the Message type
func NewMessage ¶
NewMessage creates a new instance of Message. 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.
type Option ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶
NewOption creates a new instance of Option. 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 (*Option) Apply ¶
func (_m *Option) Apply(_a0 *model.BaseConfig)
Apply provides a mock function with given fields: _a0
type Queue ¶
Queue is an autogenerated mock type for the Queue type
func NewQueue ¶
NewQueue creates a new instance of Queue. 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.
type Set ¶
Set is an autogenerated mock type for the Set type
func NewSet ¶
NewSet creates a new instance of Set. 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.
type SortedSet ¶
SortedSet is an autogenerated mock type for the SortedSet type
func NewSortedSet ¶
NewSortedSet creates a new instance of SortedSet. 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 (*SortedSet) AddScoredMember ¶
func (_m *SortedSet) AddScoredMember(ctx context.Context, key string, member string, score float64) (int64, error)
AddScoredMember provides a mock function with given fields: ctx, key, member, score
type Subscription ¶
Subscription is an autogenerated mock type for the Subscription type
func NewSubscription ¶
func NewSubscription(t interface { mock.TestingT Cleanup(func()) }) *Subscription
NewSubscription creates a new instance of Subscription. 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 (*Subscription) Close ¶
func (_m *Subscription) Close() error
Close provides a mock function with given fields: