mocks

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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 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) Add added in v1.9.1

func (m *MockGoCacheClientInterface) Add(k string, x interface{}, d time.Duration) error

Add mocks base method.

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

func (m *MockGoCacheClientInterface) Get(k string) (interface{}, bool)

Get mocks base method.

func (*MockGoCacheClientInterface) GetWithExpiration

func (m *MockGoCacheClientInterface) GetWithExpiration(k string) (interface{}, time.Time, bool)

GetWithExpiration mocks base method.

func (*MockGoCacheClientInterface) Set

func (m *MockGoCacheClientInterface) Set(k string, x interface{}, d time.Duration)

Set mocks base method.

type MockGoCacheClientInterfaceMockRecorder

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

MockGoCacheClientInterfaceMockRecorder is the mock recorder for MockGoCacheClientInterface.

func (*MockGoCacheClientInterfaceMockRecorder) Add added in v1.9.1

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

Add indicates an expected call of Add.

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

func (m *MockRedisClientInterface) Del(keys ...string) *redis.IntCmd

Del mocks base method.

func (*MockRedisClientInterface) EXPECT

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

func (*MockRedisClientInterface) FlushAll

func (m *MockRedisClientInterface) FlushAll() *redis.StatusCmd

FlushAll mocks base method.

func (*MockRedisClientInterface) Get

Get mocks base method.

func (*MockRedisClientInterface) Set

func (m *MockRedisClientInterface) Set(key string, values interface{}, expiration time.Duration) *redis.StatusCmd

Set mocks base method.

func (*MockRedisClientInterface) SetNX added in v1.9.1

func (m *MockRedisClientInterface) SetNX(key string, value interface{}, expiration time.Duration) *redis.BoolCmd

SetNX 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(keys ...interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockRedisClientInterfaceMockRecorder) FlushAll

FlushAll indicates an expected call of FlushAll.

func (*MockRedisClientInterfaceMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockRedisClientInterfaceMockRecorder) Set

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

Set indicates an expected call of Set.

func (*MockRedisClientInterfaceMockRecorder) SetNX added in v1.9.1

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

SetNX indicates an expected call of SetNX.

func (*MockRedisClientInterfaceMockRecorder) TTL

func (mr *MockRedisClientInterfaceMockRecorder) TTL(key 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