Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAdminClient
- func (m *MockAdminClient) ClusterStatus() (*pb.ClusterStatus, error)
- func (m *MockAdminClient) CreateSnapshot(arg0 *hrpc.Snapshot) error
- func (m *MockAdminClient) CreateTable(arg0 *hrpc.CreateTable) error
- func (m *MockAdminClient) DeleteSnapshot(arg0 *hrpc.Snapshot) error
- func (m *MockAdminClient) DeleteTable(arg0 *hrpc.DeleteTable) error
- func (m *MockAdminClient) DisableTable(arg0 *hrpc.DisableTable) error
- func (m *MockAdminClient) EXPECT() *MockAdminClientMockRecorder
- func (m *MockAdminClient) EnableTable(arg0 *hrpc.EnableTable) error
- func (m *MockAdminClient) ListSnapshots(arg0 *hrpc.ListSnapshots) ([]*pb.SnapshotDescription, error)
- func (m *MockAdminClient) ListTableNames(arg0 *hrpc.ListTableNames) ([]*pb.TableName, error)
- func (m *MockAdminClient) MoveRegion(arg0 *hrpc.MoveRegion) error
- func (m *MockAdminClient) RestoreSnapshot(arg0 *hrpc.Snapshot) error
- func (m *MockAdminClient) SetBalancer(arg0 *hrpc.SetBalancer) (bool, error)
- type MockAdminClientMockRecorder
- func (mr *MockAdminClientMockRecorder) ClusterStatus() *gomock.Call
- func (mr *MockAdminClientMockRecorder) CreateSnapshot(arg0 interface{}) *gomock.Call
- func (mr *MockAdminClientMockRecorder) CreateTable(arg0 interface{}) *gomock.Call
- func (mr *MockAdminClientMockRecorder) DeleteSnapshot(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
- func (mr *MockAdminClientMockRecorder) ListSnapshots(arg0 interface{}) *gomock.Call
- func (mr *MockAdminClientMockRecorder) ListTableNames(arg0 interface{}) *gomock.Call
- func (mr *MockAdminClientMockRecorder) MoveRegion(arg0 interface{}) *gomock.Call
- func (mr *MockAdminClientMockRecorder) RestoreSnapshot(arg0 interface{}) *gomock.Call
- func (mr *MockAdminClientMockRecorder) SetBalancer(arg0 interface{}) *gomock.Call
- type MockCall
- func (m *MockCall) Context() context.Context
- func (m *MockCall) Description() string
- func (m *MockCall) EXPECT() *MockCallMockRecorder
- func (m *MockCall) Key() []byte
- func (m *MockCall) Name() string
- func (m *MockCall) NewResponse() protoreflect.ProtoMessage
- func (m *MockCall) Region() hrpc.RegionInfo
- func (m *MockCall) ResultChan() chan hrpc.RPCResult
- func (m *MockCall) SetContext(arg0 context.Context)
- func (m *MockCall) SetRegion(arg0 hrpc.RegionInfo)
- func (m *MockCall) Table() []byte
- func (m *MockCall) ToProto() protoreflect.ProtoMessage
- type MockCallMockRecorder
- func (mr *MockCallMockRecorder) Context() *gomock.Call
- func (mr *MockCallMockRecorder) Description() *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) SetContext(arg0 interface{}) *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(arg0 *hrpc.Mutate) (*hrpc.Result, error)
- func (m *MockClient) CheckAndPut(arg0 *hrpc.Mutate, arg1, arg2 string, arg3 []byte) (bool, error)
- func (m *MockClient) Close()
- func (m *MockClient) Delete(arg0 *hrpc.Mutate) (*hrpc.Result, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Get(arg0 *hrpc.Get) (*hrpc.Result, error)
- func (m *MockClient) Increment(arg0 *hrpc.Mutate) (int64, error)
- func (m *MockClient) Put(arg0 *hrpc.Mutate) (*hrpc.Result, error)
- func (m *MockClient) Scan(arg0 *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(arg0 []byte) (int, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SetDeadline(arg0 time.Time) error
- func (m *MockConn) SetReadDeadline(arg0 time.Time) error
- func (m *MockConn) SetWriteDeadline(arg0 time.Time) error
- func (m *MockConn) Write(arg0 []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) CreateSnapshot ¶
func (m *MockAdminClient) CreateSnapshot(arg0 *hrpc.Snapshot) error
CreateSnapshot mocks base method.
func (*MockAdminClient) CreateTable ¶
func (m *MockAdminClient) CreateTable(arg0 *hrpc.CreateTable) error
CreateTable mocks base method.
func (*MockAdminClient) DeleteSnapshot ¶
func (m *MockAdminClient) DeleteSnapshot(arg0 *hrpc.Snapshot) error
DeleteSnapshot mocks base method.
func (*MockAdminClient) DeleteTable ¶
func (m *MockAdminClient) DeleteTable(arg0 *hrpc.DeleteTable) error
DeleteTable mocks base method.
func (*MockAdminClient) DisableTable ¶
func (m *MockAdminClient) DisableTable(arg0 *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(arg0 *hrpc.EnableTable) error
EnableTable mocks base method.
func (*MockAdminClient) ListSnapshots ¶
func (m *MockAdminClient) ListSnapshots(arg0 *hrpc.ListSnapshots) ([]*pb.SnapshotDescription, error)
ListSnapshots mocks base method.
func (*MockAdminClient) ListTableNames ¶
func (m *MockAdminClient) ListTableNames(arg0 *hrpc.ListTableNames) ([]*pb.TableName, error)
ListTableNames mocks base method.
func (*MockAdminClient) MoveRegion ¶
func (m *MockAdminClient) MoveRegion(arg0 *hrpc.MoveRegion) error
MoveRegion mocks base method.
func (*MockAdminClient) RestoreSnapshot ¶
func (m *MockAdminClient) RestoreSnapshot(arg0 *hrpc.Snapshot) error
RestoreSnapshot mocks base method.
func (*MockAdminClient) SetBalancer ¶
func (m *MockAdminClient) SetBalancer(arg0 *hrpc.SetBalancer) (bool, error)
SetBalancer 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) CreateSnapshot ¶
func (mr *MockAdminClientMockRecorder) CreateSnapshot(arg0 interface{}) *gomock.Call
CreateSnapshot indicates an expected call of CreateSnapshot.
func (*MockAdminClientMockRecorder) CreateTable ¶
func (mr *MockAdminClientMockRecorder) CreateTable(arg0 interface{}) *gomock.Call
CreateTable indicates an expected call of CreateTable.
func (*MockAdminClientMockRecorder) DeleteSnapshot ¶
func (mr *MockAdminClientMockRecorder) DeleteSnapshot(arg0 interface{}) *gomock.Call
DeleteSnapshot indicates an expected call of DeleteSnapshot.
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.
func (*MockAdminClientMockRecorder) ListSnapshots ¶
func (mr *MockAdminClientMockRecorder) ListSnapshots(arg0 interface{}) *gomock.Call
ListSnapshots indicates an expected call of ListSnapshots.
func (*MockAdminClientMockRecorder) ListTableNames ¶
func (mr *MockAdminClientMockRecorder) ListTableNames(arg0 interface{}) *gomock.Call
ListTableNames indicates an expected call of ListTableNames.
func (*MockAdminClientMockRecorder) MoveRegion ¶
func (mr *MockAdminClientMockRecorder) MoveRegion(arg0 interface{}) *gomock.Call
MoveRegion indicates an expected call of MoveRegion.
func (*MockAdminClientMockRecorder) RestoreSnapshot ¶
func (mr *MockAdminClientMockRecorder) RestoreSnapshot(arg0 interface{}) *gomock.Call
RestoreSnapshot indicates an expected call of RestoreSnapshot.
func (*MockAdminClientMockRecorder) SetBalancer ¶
func (mr *MockAdminClientMockRecorder) SetBalancer(arg0 interface{}) *gomock.Call
SetBalancer indicates an expected call of SetBalancer.
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) Description ¶
Description mocks base method.
func (*MockCall) EXPECT ¶
func (m *MockCall) EXPECT() *MockCallMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCall) NewResponse ¶
func (m *MockCall) NewResponse() protoreflect.ProtoMessage
NewResponse mocks base method.
func (*MockCall) ResultChan ¶
ResultChan mocks base method.
func (*MockCall) SetContext ¶
SetContext mocks base method.
func (*MockCall) SetRegion ¶
func (m *MockCall) SetRegion(arg0 hrpc.RegionInfo)
SetRegion mocks base method.
func (*MockCall) ToProto ¶
func (m *MockCall) ToProto() protoreflect.ProtoMessage
ToProto 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) Description ¶
func (mr *MockCallMockRecorder) Description() *gomock.Call
Description indicates an expected call of Description.
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) SetContext ¶
func (mr *MockCallMockRecorder) SetContext(arg0 interface{}) *gomock.Call
SetContext indicates an expected call of SetContext.
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 ¶
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(arg0 *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.
func (*MockRPCClient) SendRPC ¶
func (m *MockRPCClient) SendRPC(arg0 hrpc.Call) (protoreflect.ProtoMessage, error)
SendRPC mocks base method.
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.