Documentation ¶
Index ¶
- type MockAdminClient
- func (_m *MockAdminClient) ClusterStatus() (*pb.ClusterStatus, error)
- func (_m *MockAdminClient) CreateTable(_param0 *hrpc.CreateTable) error
- func (_m *MockAdminClient) DeleteTable(_param0 *hrpc.DeleteTable) error
- func (_m *MockAdminClient) DisableTable(_param0 *hrpc.DisableTable) error
- func (_m *MockAdminClient) EXPECT() *MockAdminClientMockRecorder
- func (_m *MockAdminClient) EnableTable(_param0 *hrpc.EnableTable) error
- type MockAdminClientMockRecorder
- func (_mr *MockAdminClientMockRecorder) ClusterStatus() *gomock.Call
- func (_mr *MockAdminClientMockRecorder) CreateTable(arg0 interface{}) *gomock.Call
- func (_mr *MockAdminClientMockRecorder) DeleteTable(arg0 interface{}) *gomock.Call
- func (_mr *MockAdminClientMockRecorder) DisableTable(arg0 interface{}) *gomock.Call
- func (_mr *MockAdminClientMockRecorder) EnableTable(arg0 interface{}) *gomock.Call
- type MockCall
- func (_m *MockCall) Context() context.Context
- func (_m *MockCall) EXPECT() *MockCallMockRecorder
- func (_m *MockCall) Key() []byte
- func (_m *MockCall) Name() string
- func (_m *MockCall) NewResponse() proto.Message
- func (_m *MockCall) Region() hrpc.RegionInfo
- func (_m *MockCall) ResultChan() chan hrpc.RPCResult
- func (_m *MockCall) SetRegion(_param0 hrpc.RegionInfo)
- func (_m *MockCall) Table() []byte
- func (_m *MockCall) ToProto() proto.Message
- type MockCallMockRecorder
- func (_mr *MockCallMockRecorder) Context() *gomock.Call
- func (_mr *MockCallMockRecorder) Key() *gomock.Call
- func (_mr *MockCallMockRecorder) Name() *gomock.Call
- func (_mr *MockCallMockRecorder) NewResponse() *gomock.Call
- func (_mr *MockCallMockRecorder) Region() *gomock.Call
- func (_mr *MockCallMockRecorder) ResultChan() *gomock.Call
- func (_mr *MockCallMockRecorder) SetRegion(arg0 interface{}) *gomock.Call
- func (_mr *MockCallMockRecorder) Table() *gomock.Call
- func (_mr *MockCallMockRecorder) ToProto() *gomock.Call
- type MockClient
- func (_m *MockClient) Append(_param0 *hrpc.Mutate) (*hrpc.Result, error)
- func (_m *MockClient) CheckAndPut(_param0 *hrpc.Mutate, _param1 string, _param2 string, _param3 []byte) (bool, error)
- func (_m *MockClient) Close()
- func (_m *MockClient) Delete(_param0 *hrpc.Mutate) (*hrpc.Result, error)
- func (_m *MockClient) EXPECT() *MockClientMockRecorder
- func (_m *MockClient) Get(_param0 *hrpc.Get) (*hrpc.Result, error)
- func (_m *MockClient) Increment(_param0 *hrpc.Mutate) (int64, error)
- func (_m *MockClient) Put(_param0 *hrpc.Mutate) (*hrpc.Result, error)
- func (_m *MockClient) Scan(_param0 *hrpc.Scan) hrpc.Scanner
- type MockClientMockRecorder
- func (_mr *MockClientMockRecorder) Append(arg0 interface{}) *gomock.Call
- func (_mr *MockClientMockRecorder) CheckAndPut(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (_mr *MockClientMockRecorder) Close() *gomock.Call
- func (_mr *MockClientMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (_mr *MockClientMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (_mr *MockClientMockRecorder) Increment(arg0 interface{}) *gomock.Call
- func (_mr *MockClientMockRecorder) Put(arg0 interface{}) *gomock.Call
- func (_mr *MockClientMockRecorder) Scan(arg0 interface{}) *gomock.Call
- type MockConn
- func (_m *MockConn) Close() error
- func (_m *MockConn) EXPECT() *MockConnMockRecorder
- func (_m *MockConn) LocalAddr() net.Addr
- func (_m *MockConn) Read(_param0 []byte) (int, error)
- func (_m *MockConn) RemoteAddr() net.Addr
- func (_m *MockConn) SetDeadline(_param0 time.Time) error
- func (_m *MockConn) SetReadDeadline(_param0 time.Time) error
- func (_m *MockConn) SetWriteDeadline(_param0 time.Time) error
- func (_m *MockConn) Write(_param0 []byte) (int, error)
- type MockConnMockRecorder
- func (_mr *MockConnMockRecorder) Close() *gomock.Call
- func (_mr *MockConnMockRecorder) LocalAddr() *gomock.Call
- func (_mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
- func (_mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
- type MockRPCClient
- type MockRPCClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAdminClient ¶
type MockAdminClient struct {
// contains filtered or unexported fields
}
MockAdminClient is a mock of AdminClient interface
func NewMockAdminClient ¶
func NewMockAdminClient(ctrl *gomock.Controller) *MockAdminClient
NewMockAdminClient creates a new mock instance
func (*MockAdminClient) ClusterStatus ¶
func (_m *MockAdminClient) ClusterStatus() (*pb.ClusterStatus, error)
ClusterStatus mocks base method
func (*MockAdminClient) CreateTable ¶
func (_m *MockAdminClient) CreateTable(_param0 *hrpc.CreateTable) error
CreateTable mocks base method
func (*MockAdminClient) DeleteTable ¶
func (_m *MockAdminClient) DeleteTable(_param0 *hrpc.DeleteTable) error
DeleteTable mocks base method
func (*MockAdminClient) DisableTable ¶
func (_m *MockAdminClient) DisableTable(_param0 *hrpc.DisableTable) error
DisableTable mocks base method
func (*MockAdminClient) EXPECT ¶
func (_m *MockAdminClient) EXPECT() *MockAdminClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAdminClient) EnableTable ¶
func (_m *MockAdminClient) EnableTable(_param0 *hrpc.EnableTable) error
EnableTable mocks base method
type MockAdminClientMockRecorder ¶
type MockAdminClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAdminClientMockRecorder is the mock recorder for MockAdminClient
func (*MockAdminClientMockRecorder) ClusterStatus ¶
func (_mr *MockAdminClientMockRecorder) ClusterStatus() *gomock.Call
ClusterStatus indicates an expected call of ClusterStatus
func (*MockAdminClientMockRecorder) CreateTable ¶
func (_mr *MockAdminClientMockRecorder) CreateTable(arg0 interface{}) *gomock.Call
CreateTable indicates an expected call of CreateTable
func (*MockAdminClientMockRecorder) DeleteTable ¶
func (_mr *MockAdminClientMockRecorder) DeleteTable(arg0 interface{}) *gomock.Call
DeleteTable indicates an expected call of DeleteTable
func (*MockAdminClientMockRecorder) DisableTable ¶
func (_mr *MockAdminClientMockRecorder) DisableTable(arg0 interface{}) *gomock.Call
DisableTable indicates an expected call of DisableTable
func (*MockAdminClientMockRecorder) EnableTable ¶
func (_mr *MockAdminClientMockRecorder) EnableTable(arg0 interface{}) *gomock.Call
EnableTable indicates an expected call of EnableTable
type MockCall ¶
type MockCall struct {
// contains filtered or unexported fields
}
MockCall is a mock of Call interface
func NewMockCall ¶
func NewMockCall(ctrl *gomock.Controller) *MockCall
NewMockCall creates a new mock instance
func (*MockCall) EXPECT ¶
func (_m *MockCall) EXPECT() *MockCallMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCall) NewResponse ¶
NewResponse mocks base method
func (*MockCall) ResultChan ¶
ResultChan mocks base method
func (*MockCall) SetRegion ¶
func (_m *MockCall) SetRegion(_param0 hrpc.RegionInfo)
SetRegion mocks base method
type MockCallMockRecorder ¶
type MockCallMockRecorder struct {
// contains filtered or unexported fields
}
MockCallMockRecorder is the mock recorder for MockCall
func (*MockCallMockRecorder) Context ¶
func (_mr *MockCallMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockCallMockRecorder) Key ¶
func (_mr *MockCallMockRecorder) Key() *gomock.Call
Key indicates an expected call of Key
func (*MockCallMockRecorder) Name ¶
func (_mr *MockCallMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockCallMockRecorder) NewResponse ¶
func (_mr *MockCallMockRecorder) NewResponse() *gomock.Call
NewResponse indicates an expected call of NewResponse
func (*MockCallMockRecorder) Region ¶
func (_mr *MockCallMockRecorder) Region() *gomock.Call
Region indicates an expected call of Region
func (*MockCallMockRecorder) ResultChan ¶
func (_mr *MockCallMockRecorder) ResultChan() *gomock.Call
ResultChan indicates an expected call of ResultChan
func (*MockCallMockRecorder) SetRegion ¶
func (_mr *MockCallMockRecorder) SetRegion(arg0 interface{}) *gomock.Call
SetRegion indicates an expected call of SetRegion
func (*MockCallMockRecorder) Table ¶
func (_mr *MockCallMockRecorder) Table() *gomock.Call
Table indicates an expected call of Table
func (*MockCallMockRecorder) ToProto ¶
func (_mr *MockCallMockRecorder) ToProto() *gomock.Call
ToProto indicates an expected call of ToProto
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) CheckAndPut ¶
func (_m *MockClient) CheckAndPut(_param0 *hrpc.Mutate, _param1 string, _param2 string, _param3 []byte) (bool, error)
CheckAndPut mocks base method
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) Increment ¶
func (_m *MockClient) Increment(_param0 *hrpc.Mutate) (int64, error)
Increment mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) Append ¶
func (_mr *MockClientMockRecorder) Append(arg0 interface{}) *gomock.Call
Append indicates an expected call of Append
func (*MockClientMockRecorder) CheckAndPut ¶
func (_mr *MockClientMockRecorder) CheckAndPut(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CheckAndPut indicates an expected call of CheckAndPut
func (*MockClientMockRecorder) Close ¶
func (_mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockClientMockRecorder) Delete ¶
func (_mr *MockClientMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockClientMockRecorder) Get ¶
func (_mr *MockClientMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockClientMockRecorder) Increment ¶
func (_mr *MockClientMockRecorder) Increment(arg0 interface{}) *gomock.Call
Increment indicates an expected call of Increment
func (*MockClientMockRecorder) Put ¶
func (_mr *MockClientMockRecorder) Put(arg0 interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockClientMockRecorder) Scan ¶
func (_mr *MockClientMockRecorder) Scan(arg0 interface{}) *gomock.Call
Scan indicates an expected call of Scan
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
func (*MockConn) RemoteAddr ¶
RemoteAddr mocks base method
func (*MockConn) SetDeadline ¶
SetDeadline mocks base method
func (*MockConn) SetReadDeadline ¶
SetReadDeadline mocks base method
func (*MockConn) SetWriteDeadline ¶
SetWriteDeadline 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) LocalAddr ¶
func (_mr *MockConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr
func (*MockConnMockRecorder) Read ¶
func (_mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockConnMockRecorder) RemoteAddr ¶
func (_mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr
func (*MockConnMockRecorder) SetDeadline ¶
func (_mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline
func (*MockConnMockRecorder) SetReadDeadline ¶
func (_mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (_mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline
func (*MockConnMockRecorder) Write ¶
func (_mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write
type MockRPCClient ¶
type MockRPCClient struct {
// contains filtered or unexported fields
}
MockRPCClient is a mock of RPCClient interface
func NewMockRPCClient ¶
func NewMockRPCClient(ctrl *gomock.Controller) *MockRPCClient
NewMockRPCClient creates a new mock instance
func (*MockRPCClient) EXPECT ¶
func (_m *MockRPCClient) EXPECT() *MockRPCClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRPCClientMockRecorder ¶
type MockRPCClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRPCClientMockRecorder is the mock recorder for MockRPCClient
func (*MockRPCClientMockRecorder) SendRPC ¶
func (_mr *MockRPCClientMockRecorder) SendRPC(arg0 interface{}) *gomock.Call
SendRPC indicates an expected call of SendRPC