Documentation ¶
Index ¶
- type MockAdminClient
- 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() *_MockAdminClientRecorder
- func (_m *MockAdminClient) EnableTable(_param0 *hrpc.EnableTable) error
- type MockCall
- func (_m *MockCall) Context() context.Context
- func (_m *MockCall) EXPECT() *_MockCallRecorder
- 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) Serialize() ([]byte, error)
- func (_m *MockCall) SetFamilies(_param0 map[string][]string) error
- func (_m *MockCall) SetFilter(_param0 filter.Filter) error
- func (_m *MockCall) SetRegion(_param0 hrpc.RegionInfo)
- func (_m *MockCall) Table() []byte
- 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() *_MockClientRecorder
- 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.Result, error)
- type MockReadWriteCloser
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
}
Mock of AdminClient interface
func NewMockAdminClient ¶
func NewMockAdminClient(ctrl *gomock.Controller) *MockAdminClient
func (*MockAdminClient) CreateTable ¶
func (_m *MockAdminClient) CreateTable(_param0 *hrpc.CreateTable) error
func (*MockAdminClient) DeleteTable ¶
func (_m *MockAdminClient) DeleteTable(_param0 *hrpc.DeleteTable) error
func (*MockAdminClient) DisableTable ¶
func (_m *MockAdminClient) DisableTable(_param0 *hrpc.DisableTable) error
func (*MockAdminClient) EXPECT ¶
func (_m *MockAdminClient) EXPECT() *_MockAdminClientRecorder
func (*MockAdminClient) EnableTable ¶
func (_m *MockAdminClient) EnableTable(_param0 *hrpc.EnableTable) error
type MockCall ¶
type MockCall struct {
// contains filtered or unexported fields
}
Mock of Call interface
func NewMockCall ¶
func NewMockCall(ctrl *gomock.Controller) *MockCall
func (*MockCall) NewResponse ¶
func (*MockCall) Region ¶
func (_m *MockCall) Region() hrpc.RegionInfo
func (*MockCall) ResultChan ¶
func (*MockCall) SetRegion ¶
func (_m *MockCall) SetRegion(_param0 hrpc.RegionInfo)
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
Mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
func (*MockClient) CheckAndPut ¶
func (*MockClient) Close ¶
func (_m *MockClient) Close()
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *_MockClientRecorder
type MockReadWriteCloser ¶
type MockReadWriteCloser struct {
// contains filtered or unexported fields
}
Mock of ReadWriteCloser interface
func NewMockReadWriteCloser ¶
func NewMockReadWriteCloser(ctrl *gomock.Controller) *MockReadWriteCloser
func (*MockReadWriteCloser) Close ¶
func (_m *MockReadWriteCloser) Close() error
func (*MockReadWriteCloser) EXPECT ¶
func (_m *MockReadWriteCloser) EXPECT() *_MockReadWriteCloserRecorder
Source Files ¶
Click to show internal directories.
Click to hide internal directories.