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) Do(ctx context.Context, cmd string, args ...interface{}) (interface{}, error)
- func (m *MockClientProxy) EXPECT() *MockClientProxyMockRecorder
- func (m *MockClientProxy) GetConn() redis.Conn
- func (m *MockClientProxy) GetFetcher() redis0.Fetcher
- func (m *MockClientProxy) GetLocker() redis0.Locker
- 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 MockFetcher
- type MockFetcherMockRecorder
- type MockLocker
- func (m *MockLocker) EXPECT() *MockLockerMockRecorder
- func (m *MockLocker) Lock(ctx context.Context, key string, opts ...redis.LockOption) (string, error)
- func (m *MockLocker) TryLock(ctx context.Context, key string, opts ...redis.LockOption) (string, error)
- func (m *MockLocker) Unlock(ctx context.Context, key, uuid string) error
- type MockLockerMockRecorder
- 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) 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) 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 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.
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.