Documentation
¶
Overview ¶
Package mock_elasticsearch is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Bulk(arg0 []byte) error
- func (m *MockClient) BulkFromFile(file string) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Request(httpMethod, path string, payload io.Reader) ([]byte, error)
- func (m *MockClient) RequestWithCtx(ctx context.Context, httpMethod, path string, payload io.Reader) ([]byte, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Bulk(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) BulkFromFile(file any) *gomock.Call
- func (mr *MockClientMockRecorder) Request(httpMethod, path, payload any) *gomock.Call
- func (mr *MockClientMockRecorder) RequestWithCtx(ctx, httpMethod, path, payload any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) BulkFromFile ¶
func (m *MockClient) BulkFromFile(file string) error
BulkFromFile 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) RequestWithCtx ¶
func (m *MockClient) RequestWithCtx(ctx context.Context, httpMethod, path string, payload io.Reader) ([]byte, error)
RequestWithCtx mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Bulk ¶
func (mr *MockClientMockRecorder) Bulk(arg0 any) *gomock.Call
Bulk indicates an expected call of Bulk.
func (*MockClientMockRecorder) BulkFromFile ¶
func (mr *MockClientMockRecorder) BulkFromFile(file any) *gomock.Call
BulkFromFile indicates an expected call of BulkFromFile.
func (*MockClientMockRecorder) Request ¶
func (mr *MockClientMockRecorder) Request(httpMethod, path, payload any) *gomock.Call
Request indicates an expected call of Request.
func (*MockClientMockRecorder) RequestWithCtx ¶
func (mr *MockClientMockRecorder) RequestWithCtx(ctx, httpMethod, path, payload any) *gomock.Call
RequestWithCtx indicates an expected call of RequestWithCtx.
Click to show internal directories.
Click to hide internal directories.