mockredis

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 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) Conn

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

Conn mocks base method

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

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

Fetcher mocks base method

func (*MockClientProxy) Locker

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

Locker mocks base method

type MockClientProxyMockRecorder

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

MockClientProxyMockRecorder is the mock recorder for MockClientProxy

func (*MockClientProxyMockRecorder) Conn

Conn indicates an expected call of Conn

func (*MockClientProxyMockRecorder) Do

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

Do indicates an expected call of Do

func (*MockClientProxyMockRecorder) Fetcher

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

Fetcher indicates an expected call of Fetcher

func (*MockClientProxyMockRecorder) Locker

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

Locker indicates an expected call of Locker

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 MockFetcherProxy

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

MockFetcherProxy is a mock of FetcherProxy interface

func NewMockFetcherProxy

func NewMockFetcherProxy(ctrl *gomock.Controller) *MockFetcherProxy

NewMockFetcherProxy creates a new mock instance

func (*MockFetcherProxy) EXPECT

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

func (*MockFetcherProxy) Fetch

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

Fetch mocks base method

type MockFetcherProxyMockRecorder

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

MockFetcherProxyMockRecorder is the mock recorder for MockFetcherProxy

func (*MockFetcherProxyMockRecorder) Fetch

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

Fetch indicates an expected call of Fetch

type MockLockerProxy

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

MockLockerProxy is a mock of LockerProxy interface

func NewMockLockerProxy

func NewMockLockerProxy(ctrl *gomock.Controller) *MockLockerProxy

NewMockLockerProxy creates a new mock instance

func (*MockLockerProxy) EXPECT

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

func (*MockLockerProxy) Lock

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

Lock mocks base method

func (*MockLockerProxy) LockAndCall

func (m *MockLockerProxy) LockAndCall(ctx context.Context, key string, f func() error, opts ...redis.LockOption) error

LockAndCall mocks base method

func (*MockLockerProxy) TryLock

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

TryLock mocks base method

func (*MockLockerProxy) Unlock

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

Unlock mocks base method

type MockLockerProxyMockRecorder

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

MockLockerProxyMockRecorder is the mock recorder for MockLockerProxy

func (*MockLockerProxyMockRecorder) Lock

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

Lock indicates an expected call of Lock

func (*MockLockerProxyMockRecorder) LockAndCall

func (mr *MockLockerProxyMockRecorder) LockAndCall(ctx, key, f interface{}, opts ...interface{}) *gomock.Call

LockAndCall indicates an expected call of LockAndCall

func (*MockLockerProxyMockRecorder) TryLock

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

TryLock indicates an expected call of TryLock

func (*MockLockerProxyMockRecorder) Unlock

func (mr *MockLockerProxyMockRecorder) 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