mockredis

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mockredis is a generated GoMock package.

Package mockredis is a generated GoMock package.

Package mockredis is a generated GoMock package.

Package mockredis is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockArgument

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

MockArgument is a mock of Argument interface.

func NewMockArgument

func NewMockArgument(ctrl *gomock.Controller) *MockArgument

NewMockArgument creates a new mock instance.

func (*MockArgument) EXPECT

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

func (*MockArgument) RedisArg

func (m *MockArgument) RedisArg() interface{}

RedisArg mocks base method.

type MockArgumentMockRecorder

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

MockArgumentMockRecorder is the mock recorder for MockArgument.

func (*MockArgumentMockRecorder) RedisArg

func (mr *MockArgumentMockRecorder) RedisArg() *gomock.Call

RedisArg indicates an expected call of RedisArg.

type MockClientProxy

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

MockClientProxy is a mock of ClientProxy interface.

func NewMockClientProxy

func NewMockClientProxy(ctrl *gomock.Controller) *MockClientProxy

NewMockClientProxy creates a new mock instance.

func (*MockClientProxy) Do

func (m *MockClientProxy) Do(ctx context.Context, cmd string, args ...interface{}) (interface{}, error)

Do mocks base method.

func (*MockClientProxy) EXPECT

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

func (*MockClientProxy) GetConn

func (m *MockClientProxy) GetConn() redis.Conn

GetConn mocks base method.

func (*MockClientProxy) GetFetcher

func (m *MockClientProxy) GetFetcher() redis0.Fetcher

GetFetcher mocks base method.

func (*MockClientProxy) GetLocker

func (m *MockClientProxy) GetLocker() redis0.Locker

GetLocker mocks base method.

type MockClientProxyMockRecorder

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

MockClientProxyMockRecorder is the mock recorder for MockClientProxy.

func (*MockClientProxyMockRecorder) Do

func (mr *MockClientProxyMockRecorder) Do(ctx, cmd interface{}, args ...interface{}) *gomock.Call

Do indicates an expected call of Do.

func (*MockClientProxyMockRecorder) GetConn

func (mr *MockClientProxyMockRecorder) GetConn() *gomock.Call

GetConn indicates an expected call of GetConn.

func (*MockClientProxyMockRecorder) GetFetcher

func (mr *MockClientProxyMockRecorder) GetFetcher() *gomock.Call

GetFetcher indicates an expected call of GetFetcher.

func (*MockClientProxyMockRecorder) GetLocker

func (mr *MockClientProxyMockRecorder) GetLocker() *gomock.Call

GetLocker indicates an expected call of GetLocker.

type MockConn

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

MockConn is a mock of Conn interface.

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance.

func (*MockConn) Close

func (m *MockConn) Close() error

Close mocks base method.

func (*MockConn) Do

func (m *MockConn) Do(commandName string, args ...interface{}) (interface{}, error)

Do mocks base method.

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) Err

func (m *MockConn) Err() error

Err mocks base method.

func (*MockConn) Flush

func (m *MockConn) Flush() error

Flush mocks base method.

func (*MockConn) Receive

func (m *MockConn) Receive() (interface{}, error)

Receive mocks base method.

func (*MockConn) Send

func (m *MockConn) Send(commandName string, args ...interface{}) error

Send mocks base method.

type MockConnMockRecorder

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

MockConnMockRecorder is the mock recorder for MockConn.

func (*MockConnMockRecorder) Close

func (mr *MockConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockConnMockRecorder) Do

func (mr *MockConnMockRecorder) Do(commandName interface{}, args ...interface{}) *gomock.Call

Do indicates an expected call of Do.

func (*MockConnMockRecorder) Err

func (mr *MockConnMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockConnMockRecorder) Flush

func (mr *MockConnMockRecorder) Flush() *gomock.Call

Flush indicates an expected call of Flush.

func (*MockConnMockRecorder) Receive

func (mr *MockConnMockRecorder) Receive() *gomock.Call

Receive indicates an expected call of Receive.

func (*MockConnMockRecorder) Send

func (mr *MockConnMockRecorder) Send(commandName interface{}, args ...interface{}) *gomock.Call

Send indicates an expected call of Send.

type MockConnWithContext

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

MockConnWithContext is a mock of ConnWithContext interface.

func NewMockConnWithContext

func NewMockConnWithContext(ctrl *gomock.Controller) *MockConnWithContext

NewMockConnWithContext creates a new mock instance.

func (*MockConnWithContext) Close

func (m *MockConnWithContext) Close() error

Close mocks base method.

func (*MockConnWithContext) Do

func (m *MockConnWithContext) Do(commandName string, args ...interface{}) (interface{}, error)

Do mocks base method.

func (*MockConnWithContext) DoContext

func (m *MockConnWithContext) DoContext(ctx context.Context, commandName string, args ...interface{}) (interface{}, error)

DoContext mocks base method.

func (*MockConnWithContext) EXPECT

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

func (*MockConnWithContext) Err

func (m *MockConnWithContext) Err() error

Err mocks base method.

func (*MockConnWithContext) Flush

func (m *MockConnWithContext) Flush() error

Flush mocks base method.

func (*MockConnWithContext) Receive

func (m *MockConnWithContext) Receive() (interface{}, error)

Receive mocks base method.

func (*MockConnWithContext) ReceiveContext

func (m *MockConnWithContext) ReceiveContext(ctx context.Context) (interface{}, error)

ReceiveContext mocks base method.

func (*MockConnWithContext) Send

func (m *MockConnWithContext) Send(commandName string, args ...interface{}) error

Send mocks base method.

type MockConnWithContextMockRecorder

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

MockConnWithContextMockRecorder is the mock recorder for MockConnWithContext.

func (*MockConnWithContextMockRecorder) Close

Close indicates an expected call of Close.

func (*MockConnWithContextMockRecorder) Do

func (mr *MockConnWithContextMockRecorder) Do(commandName interface{}, args ...interface{}) *gomock.Call

Do indicates an expected call of Do.

func (*MockConnWithContextMockRecorder) DoContext

func (mr *MockConnWithContextMockRecorder) DoContext(ctx, commandName interface{}, args ...interface{}) *gomock.Call

DoContext indicates an expected call of DoContext.

func (*MockConnWithContextMockRecorder) Err

Err indicates an expected call of Err.

func (*MockConnWithContextMockRecorder) Flush

Flush indicates an expected call of Flush.

func (*MockConnWithContextMockRecorder) Receive

Receive indicates an expected call of Receive.

func (*MockConnWithContextMockRecorder) ReceiveContext

func (mr *MockConnWithContextMockRecorder) ReceiveContext(ctx interface{}) *gomock.Call

ReceiveContext indicates an expected call of ReceiveContext.

func (*MockConnWithContextMockRecorder) Send

func (mr *MockConnWithContextMockRecorder) Send(commandName interface{}, args ...interface{}) *gomock.Call

Send indicates an expected call of Send.

type MockConnWithTimeout

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

MockConnWithTimeout is a mock of ConnWithTimeout interface.

func NewMockConnWithTimeout

func NewMockConnWithTimeout(ctrl *gomock.Controller) *MockConnWithTimeout

NewMockConnWithTimeout creates a new mock instance.

func (*MockConnWithTimeout) Close

func (m *MockConnWithTimeout) Close() error

Close mocks base method.

func (*MockConnWithTimeout) Do

func (m *MockConnWithTimeout) Do(commandName string, args ...interface{}) (interface{}, error)

Do mocks base method.

func (*MockConnWithTimeout) DoWithTimeout

func (m *MockConnWithTimeout) DoWithTimeout(timeout time.Duration, commandName string, args ...interface{}) (interface{}, error)

DoWithTimeout mocks base method.

func (*MockConnWithTimeout) EXPECT

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

func (*MockConnWithTimeout) Err

func (m *MockConnWithTimeout) Err() error

Err mocks base method.

func (*MockConnWithTimeout) Flush

func (m *MockConnWithTimeout) Flush() error

Flush mocks base method.

func (*MockConnWithTimeout) Receive

func (m *MockConnWithTimeout) Receive() (interface{}, error)

Receive mocks base method.

func (*MockConnWithTimeout) ReceiveWithTimeout

func (m *MockConnWithTimeout) ReceiveWithTimeout(timeout time.Duration) (interface{}, error)

ReceiveWithTimeout mocks base method.

func (*MockConnWithTimeout) Send

func (m *MockConnWithTimeout) Send(commandName string, args ...interface{}) error

Send mocks base method.

type MockConnWithTimeoutMockRecorder

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

MockConnWithTimeoutMockRecorder is the mock recorder for MockConnWithTimeout.

func (*MockConnWithTimeoutMockRecorder) Close

Close indicates an expected call of Close.

func (*MockConnWithTimeoutMockRecorder) Do

func (mr *MockConnWithTimeoutMockRecorder) Do(commandName interface{}, args ...interface{}) *gomock.Call

Do indicates an expected call of Do.

func (*MockConnWithTimeoutMockRecorder) DoWithTimeout

func (mr *MockConnWithTimeoutMockRecorder) DoWithTimeout(timeout, commandName interface{}, args ...interface{}) *gomock.Call

DoWithTimeout indicates an expected call of DoWithTimeout.

func (*MockConnWithTimeoutMockRecorder) Err

Err indicates an expected call of Err.

func (*MockConnWithTimeoutMockRecorder) Flush

Flush indicates an expected call of Flush.

func (*MockConnWithTimeoutMockRecorder) Receive

Receive indicates an expected call of Receive.

func (*MockConnWithTimeoutMockRecorder) ReceiveWithTimeout

func (mr *MockConnWithTimeoutMockRecorder) ReceiveWithTimeout(timeout interface{}) *gomock.Call

ReceiveWithTimeout indicates an expected call of ReceiveWithTimeout.

func (*MockConnWithTimeoutMockRecorder) Send

func (mr *MockConnWithTimeoutMockRecorder) Send(commandName interface{}, args ...interface{}) *gomock.Call

Send indicates an expected call of Send.

type MockFetcher

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

MockFetcher is a mock of Fetcher interface.

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance.

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

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

func (*MockFetcher) Fetch

func (m *MockFetcher) Fetch(ctx context.Context, key string, dest interface{}, opts ...redis.FetchOption) error

Fetch mocks base method.

type MockFetcherMockRecorder

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

MockFetcherMockRecorder is the mock recorder for MockFetcher.

func (*MockFetcherMockRecorder) Fetch

func (mr *MockFetcherMockRecorder) Fetch(ctx, key, dest interface{}, opts ...interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

type MockLocker

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

MockLocker is a mock of Locker interface.

func NewMockLocker

func NewMockLocker(ctrl *gomock.Controller) *MockLocker

NewMockLocker creates a new mock instance.

func (*MockLocker) EXPECT

func (m *MockLocker) EXPECT() *MockLockerMockRecorder

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

func (*MockLocker) Lock

func (m *MockLocker) Lock(ctx context.Context, key string, opts ...redis.LockOption) (string, error)

Lock mocks base method.

func (*MockLocker) TryLock

func (m *MockLocker) TryLock(ctx context.Context, key string, opts ...redis.LockOption) (string, error)

TryLock mocks base method.

func (*MockLocker) Unlock

func (m *MockLocker) Unlock(ctx context.Context, key, uuid string) error

Unlock mocks base method.

type MockLockerMockRecorder

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

MockLockerMockRecorder is the mock recorder for MockLocker.

func (*MockLockerMockRecorder) Lock

func (mr *MockLockerMockRecorder) Lock(ctx, key interface{}, opts ...interface{}) *gomock.Call

Lock indicates an expected call of Lock.

func (*MockLockerMockRecorder) TryLock

func (mr *MockLockerMockRecorder) TryLock(ctx, key interface{}, opts ...interface{}) *gomock.Call

TryLock indicates an expected call of TryLock.

func (*MockLockerMockRecorder) Unlock

func (mr *MockLockerMockRecorder) Unlock(ctx, key, uuid interface{}) *gomock.Call

Unlock indicates an expected call of Unlock.

type MockScanner

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

MockScanner is a mock of Scanner interface.

func NewMockScanner

func NewMockScanner(ctrl *gomock.Controller) *MockScanner

NewMockScanner creates a new mock instance.

func (*MockScanner) EXPECT

func (m *MockScanner) EXPECT() *MockScannerMockRecorder

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

func (*MockScanner) RedisScan

func (m *MockScanner) RedisScan(src interface{}) error

RedisScan mocks base method.

type MockScannerMockRecorder

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

MockScannerMockRecorder is the mock recorder for MockScanner.

func (*MockScannerMockRecorder) RedisScan

func (mr *MockScannerMockRecorder) RedisScan(src interface{}) *gomock.Call

RedisScan indicates an expected call of RedisScan.

Jump to

Keyboard shortcuts

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