mocks

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBigcacheClientInterface

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

MockBigcacheClientInterface is a mock of BigcacheClientInterface interface.

func NewMockBigcacheClientInterface

func NewMockBigcacheClientInterface(ctrl *gomock.Controller) *MockBigcacheClientInterface

NewMockBigcacheClientInterface creates a new mock instance.

func (*MockBigcacheClientInterface) Delete

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

Delete mocks base method.

func (*MockBigcacheClientInterface) EXPECT

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

func (*MockBigcacheClientInterface) Get

func (m *MockBigcacheClientInterface) Get(key string) ([]byte, error)

Get mocks base method.

func (*MockBigcacheClientInterface) Reset

Reset mocks base method.

func (*MockBigcacheClientInterface) Set

func (m *MockBigcacheClientInterface) Set(key string, entry []byte) error

Set mocks base method.

type MockBigcacheClientInterfaceMockRecorder

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

MockBigcacheClientInterfaceMockRecorder is the mock recorder for MockBigcacheClientInterface.

func (*MockBigcacheClientInterfaceMockRecorder) Delete

func (mr *MockBigcacheClientInterfaceMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockBigcacheClientInterfaceMockRecorder) Get

func (mr *MockBigcacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockBigcacheClientInterfaceMockRecorder) Reset

Reset indicates an expected call of Reset.

func (*MockBigcacheClientInterfaceMockRecorder) Set

func (mr *MockBigcacheClientInterfaceMockRecorder) Set(key, entry interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockFreecacheClientInterface

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

MockFreecacheClientInterface is a mock of FreecacheClientInterface interface.

func NewMockFreecacheClientInterface

func NewMockFreecacheClientInterface(ctrl *gomock.Controller) *MockFreecacheClientInterface

NewMockFreecacheClientInterface creates a new mock instance.

func (*MockFreecacheClientInterface) Clear

func (m *MockFreecacheClientInterface) Clear()

Clear mocks base method.

func (*MockFreecacheClientInterface) Del

func (m *MockFreecacheClientInterface) Del(key []byte) bool

Del mocks base method.

func (*MockFreecacheClientInterface) DelInt

func (m *MockFreecacheClientInterface) DelInt(key int64) bool

DelInt mocks base method.

func (*MockFreecacheClientInterface) EXPECT

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

func (*MockFreecacheClientInterface) Get

func (m *MockFreecacheClientInterface) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockFreecacheClientInterface) GetInt

func (m *MockFreecacheClientInterface) GetInt(key int64) ([]byte, error)

GetInt mocks base method.

func (*MockFreecacheClientInterface) Set

func (m *MockFreecacheClientInterface) Set(key, value []byte, expireSeconds int) error

Set mocks base method.

func (*MockFreecacheClientInterface) SetInt

func (m *MockFreecacheClientInterface) SetInt(key int64, value []byte, expireSeconds int) error

SetInt mocks base method.

func (*MockFreecacheClientInterface) TTL

func (m *MockFreecacheClientInterface) TTL(key []byte) (uint32, error)

TTL mocks base method.

type MockFreecacheClientInterfaceMockRecorder

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

MockFreecacheClientInterfaceMockRecorder is the mock recorder for MockFreecacheClientInterface.

func (*MockFreecacheClientInterfaceMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockFreecacheClientInterfaceMockRecorder) Del

func (mr *MockFreecacheClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockFreecacheClientInterfaceMockRecorder) DelInt

func (mr *MockFreecacheClientInterfaceMockRecorder) DelInt(key interface{}) *gomock.Call

DelInt indicates an expected call of DelInt.

func (*MockFreecacheClientInterfaceMockRecorder) Get

func (mr *MockFreecacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockFreecacheClientInterfaceMockRecorder) GetInt

func (mr *MockFreecacheClientInterfaceMockRecorder) GetInt(key interface{}) *gomock.Call

GetInt indicates an expected call of GetInt.

func (*MockFreecacheClientInterfaceMockRecorder) Set

func (mr *MockFreecacheClientInterfaceMockRecorder) Set(key, value, expireSeconds interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockFreecacheClientInterfaceMockRecorder) SetInt

func (mr *MockFreecacheClientInterfaceMockRecorder) SetInt(key, value, expireSeconds interface{}) *gomock.Call

SetInt indicates an expected call of SetInt.

func (*MockFreecacheClientInterfaceMockRecorder) TTL

func (mr *MockFreecacheClientInterfaceMockRecorder) TTL(key interface{}) *gomock.Call

TTL indicates an expected call of TTL.

type MockGoCacheClientInterface

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

MockGoCacheClientInterface is a mock of GoCacheClientInterface interface.

func NewMockGoCacheClientInterface

func NewMockGoCacheClientInterface(ctrl *gomock.Controller) *MockGoCacheClientInterface

NewMockGoCacheClientInterface creates a new mock instance.

func (*MockGoCacheClientInterface) Delete

func (m *MockGoCacheClientInterface) Delete(k string)

Delete mocks base method.

func (*MockGoCacheClientInterface) EXPECT

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

func (*MockGoCacheClientInterface) Flush

func (m *MockGoCacheClientInterface) Flush()

Flush mocks base method.

func (*MockGoCacheClientInterface) Get

Get mocks base method.

func (*MockGoCacheClientInterface) GetWithExpiration

func (m *MockGoCacheClientInterface) GetWithExpiration(k string) (any, time.Time, bool)

GetWithExpiration mocks base method.

func (*MockGoCacheClientInterface) Set

Set mocks base method.

type MockGoCacheClientInterfaceMockRecorder

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

MockGoCacheClientInterfaceMockRecorder is the mock recorder for MockGoCacheClientInterface.

func (*MockGoCacheClientInterfaceMockRecorder) Delete

func (mr *MockGoCacheClientInterfaceMockRecorder) Delete(k interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockGoCacheClientInterfaceMockRecorder) Flush

Flush indicates an expected call of Flush.

func (*MockGoCacheClientInterfaceMockRecorder) Get

func (mr *MockGoCacheClientInterfaceMockRecorder) Get(k interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockGoCacheClientInterfaceMockRecorder) GetWithExpiration

func (mr *MockGoCacheClientInterfaceMockRecorder) GetWithExpiration(k interface{}) *gomock.Call

GetWithExpiration indicates an expected call of GetWithExpiration.

func (*MockGoCacheClientInterfaceMockRecorder) Set

func (mr *MockGoCacheClientInterfaceMockRecorder) Set(k, x, d interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockMemcacheClientInterface

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

MockMemcacheClientInterface is a mock of MemcacheClientInterface interface.

func NewMockMemcacheClientInterface

func NewMockMemcacheClientInterface(ctrl *gomock.Controller) *MockMemcacheClientInterface

NewMockMemcacheClientInterface creates a new mock instance.

func (*MockMemcacheClientInterface) Add

Add mocks base method.

func (*MockMemcacheClientInterface) CompareAndSwap

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

CompareAndSwap mocks base method.

func (*MockMemcacheClientInterface) Delete

func (m *MockMemcacheClientInterface) Delete(item string) error

Delete mocks base method.

func (*MockMemcacheClientInterface) EXPECT

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

func (*MockMemcacheClientInterface) FlushAll

func (m *MockMemcacheClientInterface) FlushAll() error

FlushAll mocks base method.

func (*MockMemcacheClientInterface) Get

Get mocks base method.

func (*MockMemcacheClientInterface) Set

Set mocks base method.

type MockMemcacheClientInterfaceMockRecorder

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

MockMemcacheClientInterfaceMockRecorder is the mock recorder for MockMemcacheClientInterface.

func (*MockMemcacheClientInterfaceMockRecorder) Add

func (mr *MockMemcacheClientInterfaceMockRecorder) Add(item interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockMemcacheClientInterfaceMockRecorder) CompareAndSwap

func (mr *MockMemcacheClientInterfaceMockRecorder) CompareAndSwap(item interface{}) *gomock.Call

CompareAndSwap indicates an expected call of CompareAndSwap.

func (*MockMemcacheClientInterfaceMockRecorder) Delete

func (mr *MockMemcacheClientInterfaceMockRecorder) Delete(item interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockMemcacheClientInterfaceMockRecorder) FlushAll

FlushAll indicates an expected call of FlushAll.

func (*MockMemcacheClientInterfaceMockRecorder) Get

func (mr *MockMemcacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockMemcacheClientInterfaceMockRecorder) Set

func (mr *MockMemcacheClientInterfaceMockRecorder) Set(item interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockRedisClientInterface

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

MockRedisClientInterface is a mock of RedisClientInterface interface.

func NewMockRedisClientInterface

func NewMockRedisClientInterface(ctrl *gomock.Controller) *MockRedisClientInterface

NewMockRedisClientInterface creates a new mock instance.

func (*MockRedisClientInterface) Del

Del mocks base method.

func (*MockRedisClientInterface) EXPECT

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

func (*MockRedisClientInterface) Expire

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

Expire mocks base method.

func (*MockRedisClientInterface) FlushAll

FlushAll mocks base method.

func (*MockRedisClientInterface) Get

Get mocks base method.

func (*MockRedisClientInterface) SAdd

func (m *MockRedisClientInterface) SAdd(ctx context.Context, key string, members ...any) *redis.IntCmd

SAdd mocks base method.

func (*MockRedisClientInterface) SMembers

SMembers mocks base method.

func (*MockRedisClientInterface) Set

func (m *MockRedisClientInterface) Set(ctx context.Context, key string, values any, expiration time.Duration) *redis.StatusCmd

Set mocks base method.

func (*MockRedisClientInterface) TTL

TTL mocks base method.

type MockRedisClientInterfaceMockRecorder

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

MockRedisClientInterfaceMockRecorder is the mock recorder for MockRedisClientInterface.

func (*MockRedisClientInterfaceMockRecorder) Del

func (mr *MockRedisClientInterfaceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockRedisClientInterfaceMockRecorder) Expire

func (mr *MockRedisClientInterfaceMockRecorder) Expire(ctx, key, expiration interface{}) *gomock.Call

Expire indicates an expected call of Expire.

func (*MockRedisClientInterfaceMockRecorder) FlushAll

func (mr *MockRedisClientInterfaceMockRecorder) FlushAll(ctx interface{}) *gomock.Call

FlushAll indicates an expected call of FlushAll.

func (*MockRedisClientInterfaceMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockRedisClientInterfaceMockRecorder) SAdd

func (mr *MockRedisClientInterfaceMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call

SAdd indicates an expected call of SAdd.

func (*MockRedisClientInterfaceMockRecorder) SMembers

func (mr *MockRedisClientInterfaceMockRecorder) SMembers(ctx, key interface{}) *gomock.Call

SMembers indicates an expected call of SMembers.

func (*MockRedisClientInterfaceMockRecorder) Set

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

Set indicates an expected call of Set.

func (*MockRedisClientInterfaceMockRecorder) TTL

func (mr *MockRedisClientInterfaceMockRecorder) TTL(ctx, key interface{}) *gomock.Call

TTL indicates an expected call of TTL.

type MockRedisClusterClientInterface

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

MockRedisClusterClientInterface is a mock of RedisClusterClientInterface interface.

func NewMockRedisClusterClientInterface

func NewMockRedisClusterClientInterface(ctrl *gomock.Controller) *MockRedisClusterClientInterface

NewMockRedisClusterClientInterface creates a new mock instance.

func (*MockRedisClusterClientInterface) Del

Del mocks base method.

func (*MockRedisClusterClientInterface) EXPECT

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

func (*MockRedisClusterClientInterface) Expire

Expire mocks base method.

func (*MockRedisClusterClientInterface) FlushAll

FlushAll mocks base method.

func (*MockRedisClusterClientInterface) Get

Get mocks base method.

func (*MockRedisClusterClientInterface) SAdd

func (m *MockRedisClusterClientInterface) SAdd(ctx context.Context, key string, members ...any) *redis.IntCmd

SAdd mocks base method.

func (*MockRedisClusterClientInterface) SMembers

SMembers mocks base method.

func (*MockRedisClusterClientInterface) Set

func (m *MockRedisClusterClientInterface) Set(ctx context.Context, key string, values any, expiration time.Duration) *redis.StatusCmd

Set mocks base method.

func (*MockRedisClusterClientInterface) TTL

TTL mocks base method.

type MockRedisClusterClientInterfaceMockRecorder

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

MockRedisClusterClientInterfaceMockRecorder is the mock recorder for MockRedisClusterClientInterface.

func (*MockRedisClusterClientInterfaceMockRecorder) Del

func (mr *MockRedisClusterClientInterfaceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockRedisClusterClientInterfaceMockRecorder) Expire

func (mr *MockRedisClusterClientInterfaceMockRecorder) Expire(ctx, key, expiration interface{}) *gomock.Call

Expire indicates an expected call of Expire.

func (*MockRedisClusterClientInterfaceMockRecorder) FlushAll

func (mr *MockRedisClusterClientInterfaceMockRecorder) FlushAll(ctx interface{}) *gomock.Call

FlushAll indicates an expected call of FlushAll.

func (*MockRedisClusterClientInterfaceMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockRedisClusterClientInterfaceMockRecorder) SAdd

func (mr *MockRedisClusterClientInterfaceMockRecorder) SAdd(ctx, key interface{}, members ...interface{}) *gomock.Call

SAdd indicates an expected call of SAdd.

func (*MockRedisClusterClientInterfaceMockRecorder) SMembers

func (mr *MockRedisClusterClientInterfaceMockRecorder) SMembers(ctx, key interface{}) *gomock.Call

SMembers indicates an expected call of SMembers.

func (*MockRedisClusterClientInterfaceMockRecorder) Set

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

Set indicates an expected call of Set.

func (*MockRedisClusterClientInterfaceMockRecorder) TTL

func (mr *MockRedisClusterClientInterfaceMockRecorder) TTL(ctx, key interface{}) *gomock.Call

TTL indicates an expected call of TTL.

type MockRistrettoClientInterface

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

MockRistrettoClientInterface is a mock of RistrettoClientInterface interface.

func NewMockRistrettoClientInterface

func NewMockRistrettoClientInterface(ctrl *gomock.Controller) *MockRistrettoClientInterface

NewMockRistrettoClientInterface creates a new mock instance.

func (*MockRistrettoClientInterface) Clear

func (m *MockRistrettoClientInterface) Clear()

Clear mocks base method.

func (*MockRistrettoClientInterface) Del

func (m *MockRistrettoClientInterface) Del(key any)

Del mocks base method.

func (*MockRistrettoClientInterface) EXPECT

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

func (*MockRistrettoClientInterface) Get

func (m *MockRistrettoClientInterface) Get(key any) (any, bool)

Get mocks base method.

func (*MockRistrettoClientInterface) SetWithTTL

func (m *MockRistrettoClientInterface) SetWithTTL(key, value any, cost int64, ttl time.Duration) bool

SetWithTTL mocks base method.

type MockRistrettoClientInterfaceMockRecorder

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

MockRistrettoClientInterfaceMockRecorder is the mock recorder for MockRistrettoClientInterface.

func (*MockRistrettoClientInterfaceMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockRistrettoClientInterfaceMockRecorder) Del

func (mr *MockRistrettoClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockRistrettoClientInterfaceMockRecorder) Get

func (mr *MockRistrettoClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRistrettoClientInterfaceMockRecorder) SetWithTTL

func (mr *MockRistrettoClientInterfaceMockRecorder) SetWithTTL(key, value, cost, ttl interface{}) *gomock.Call

SetWithTTL indicates an expected call of SetWithTTL.

Jump to

Keyboard shortcuts

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