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 ¶
- type MockArgument
- type MockArgumentMockRecorder
- type MockClientProxy
- func (m *MockClientProxy) Conn() redis.Conn
- func (m *MockClientProxy) Do(ctx context.Context, cmd string, args ...interface{}) (interface{}, error)
- func (m *MockClientProxy) EXPECT() *MockClientProxyMockRecorder
- func (m *MockClientProxy) Fetcher() redis0.FetcherProxy
- func (m *MockClientProxy) Locker() redis0.LockerProxy
- type MockClientProxyMockRecorder
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) Do(commandName string, args ...interface{}) (interface{}, error)
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) Err() error
- func (m *MockConn) Flush() error
- func (m *MockConn) Receive() (interface{}, error)
- func (m *MockConn) Send(commandName string, args ...interface{}) error
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) Do(commandName interface{}, args ...interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Err() *gomock.Call
- func (mr *MockConnMockRecorder) Flush() *gomock.Call
- func (mr *MockConnMockRecorder) Receive() *gomock.Call
- func (mr *MockConnMockRecorder) Send(commandName interface{}, args ...interface{}) *gomock.Call
- type MockConnWithContext
- func (m *MockConnWithContext) Close() error
- func (m *MockConnWithContext) Do(commandName string, args ...interface{}) (interface{}, error)
- func (m *MockConnWithContext) DoContext(ctx context.Context, commandName string, args ...interface{}) (interface{}, error)
- func (m *MockConnWithContext) EXPECT() *MockConnWithContextMockRecorder
- func (m *MockConnWithContext) Err() error
- func (m *MockConnWithContext) Flush() error
- func (m *MockConnWithContext) Receive() (interface{}, error)
- func (m *MockConnWithContext) ReceiveContext(ctx context.Context) (interface{}, error)
- func (m *MockConnWithContext) Send(commandName string, args ...interface{}) error
- type MockConnWithContextMockRecorder
- func (mr *MockConnWithContextMockRecorder) Close() *gomock.Call
- func (mr *MockConnWithContextMockRecorder) Do(commandName interface{}, args ...interface{}) *gomock.Call
- func (mr *MockConnWithContextMockRecorder) DoContext(ctx, commandName interface{}, args ...interface{}) *gomock.Call
- func (mr *MockConnWithContextMockRecorder) Err() *gomock.Call
- func (mr *MockConnWithContextMockRecorder) Flush() *gomock.Call
- func (mr *MockConnWithContextMockRecorder) Receive() *gomock.Call
- func (mr *MockConnWithContextMockRecorder) ReceiveContext(ctx interface{}) *gomock.Call
- func (mr *MockConnWithContextMockRecorder) Send(commandName interface{}, args ...interface{}) *gomock.Call
- type MockConnWithTimeout
- func (m *MockConnWithTimeout) Close() error
- func (m *MockConnWithTimeout) Do(commandName string, args ...interface{}) (interface{}, error)
- func (m *MockConnWithTimeout) DoWithTimeout(timeout time.Duration, commandName string, args ...interface{}) (interface{}, error)
- func (m *MockConnWithTimeout) EXPECT() *MockConnWithTimeoutMockRecorder
- func (m *MockConnWithTimeout) Err() error
- func (m *MockConnWithTimeout) Flush() error
- func (m *MockConnWithTimeout) Receive() (interface{}, error)
- func (m *MockConnWithTimeout) ReceiveWithTimeout(timeout time.Duration) (interface{}, error)
- func (m *MockConnWithTimeout) Send(commandName string, args ...interface{}) error
- type MockConnWithTimeoutMockRecorder
- func (mr *MockConnWithTimeoutMockRecorder) Close() *gomock.Call
- func (mr *MockConnWithTimeoutMockRecorder) Do(commandName interface{}, args ...interface{}) *gomock.Call
- func (mr *MockConnWithTimeoutMockRecorder) DoWithTimeout(timeout, commandName interface{}, args ...interface{}) *gomock.Call
- func (mr *MockConnWithTimeoutMockRecorder) Err() *gomock.Call
- func (mr *MockConnWithTimeoutMockRecorder) Flush() *gomock.Call
- func (mr *MockConnWithTimeoutMockRecorder) Receive() *gomock.Call
- func (mr *MockConnWithTimeoutMockRecorder) ReceiveWithTimeout(timeout interface{}) *gomock.Call
- func (mr *MockConnWithTimeoutMockRecorder) Send(commandName interface{}, args ...interface{}) *gomock.Call
- type MockFetcherProxy
- type MockFetcherProxyMockRecorder
- type MockLockerProxy
- func (m *MockLockerProxy) EXPECT() *MockLockerProxyMockRecorder
- func (m *MockLockerProxy) Lock(ctx context.Context, key string, opts ...redis.LockOption) (string, error)
- func (m *MockLockerProxy) LockAndCall(ctx context.Context, key string, f func() error, opts ...redis.LockOption) error
- func (m *MockLockerProxy) TryLock(ctx context.Context, key string, opts ...redis.LockOption) (string, error)
- func (m *MockLockerProxy) Unlock(ctx context.Context, key, uuid string) error
- type MockLockerProxyMockRecorder
- func (mr *MockLockerProxyMockRecorder) Lock(ctx, key interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockLockerProxyMockRecorder) LockAndCall(ctx, key, f interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockLockerProxyMockRecorder) TryLock(ctx, key interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockLockerProxyMockRecorder) Unlock(ctx, key, uuid interface{}) *gomock.Call
- type MockScanner
- type MockScannerMockRecorder
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 ¶
func (m *MockArgument) EXPECT() *MockArgumentMockRecorder
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 ¶
func (m *MockClientProxy) EXPECT() *MockClientProxyMockRecorder
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 ¶
func (mr *MockClientProxyMockRecorder) Conn() *gomock.Call
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) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockConnWithContext) EXPECT() *MockConnWithContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (mr *MockConnWithContextMockRecorder) Close() *gomock.Call
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 ¶
func (mr *MockConnWithContextMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockConnWithContextMockRecorder) Flush ¶
func (mr *MockConnWithContextMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockConnWithContextMockRecorder) Receive ¶
func (mr *MockConnWithContextMockRecorder) Receive() *gomock.Call
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 ¶
func (m *MockConnWithTimeout) EXPECT() *MockConnWithTimeoutMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (mr *MockConnWithTimeoutMockRecorder) Close() *gomock.Call
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 ¶
func (mr *MockConnWithTimeoutMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockConnWithTimeoutMockRecorder) Flush ¶
func (mr *MockConnWithTimeoutMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockConnWithTimeoutMockRecorder) Receive ¶
func (mr *MockConnWithTimeoutMockRecorder) Receive() *gomock.Call
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 ¶
func (m *MockFetcherProxy) EXPECT() *MockFetcherProxyMockRecorder
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 ¶
func (m *MockLockerProxy) EXPECT() *MockLockerProxyMockRecorder
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
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.