Documentation ¶
Overview ¶
Package mock_elasticsearch is a generated GoMock package.
Index ¶
- type MockESClient
- func (m *MockESClient) EXPECT() *MockESClientMockRecorder
- func (m *MockESClient) IndexDoc(ctx context.Context, index, docType, id string, body interface{}) (*elastic.IndexResponse, error)
- func (m *MockESClient) IndexDocWithoutType(ctx context.Context, index, id string, body interface{}) (*elastic.IndexResponse, error)
- func (m *MockESClient) Ping(ctx context.Context, url string) (*elastic.PingResult, int, error)
- func (m *MockESClient) SearchDoc(ctx context.Context, indices []string, docType string, query elastic.Query, ...) (*elastic.SearchResult, error)
- type MockESClientMockRecorder
- func (mr *MockESClientMockRecorder) IndexDoc(ctx, index, docType, id, body interface{}) *gomock.Call
- func (mr *MockESClientMockRecorder) IndexDocWithoutType(ctx, index, id, body interface{}) *gomock.Call
- func (mr *MockESClientMockRecorder) Ping(ctx, url interface{}) *gomock.Call
- func (mr *MockESClientMockRecorder) SearchDoc(ctx, indices, docType, query, sorts, from, size interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockESClient ¶
type MockESClient struct {
// contains filtered or unexported fields
}
MockESClient is a mock of ESClient interface.
func NewMockESClient ¶
func NewMockESClient(ctrl *gomock.Controller) *MockESClient
NewMockESClient creates a new mock instance.
func (*MockESClient) EXPECT ¶
func (m *MockESClient) EXPECT() *MockESClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockESClient) IndexDoc ¶
func (m *MockESClient) IndexDoc(ctx context.Context, index, docType, id string, body interface{}) (*elastic.IndexResponse, error)
IndexDoc mocks base method.
func (*MockESClient) IndexDocWithoutType ¶ added in v0.53.1
func (m *MockESClient) IndexDocWithoutType(ctx context.Context, index, id string, body interface{}) (*elastic.IndexResponse, error)
IndexDocWithoutType mocks base method.
func (*MockESClient) Ping ¶
func (m *MockESClient) Ping(ctx context.Context, url string) (*elastic.PingResult, int, error)
Ping mocks base method.
type MockESClientMockRecorder ¶
type MockESClientMockRecorder struct {
// contains filtered or unexported fields
}
MockESClientMockRecorder is the mock recorder for MockESClient.
func (*MockESClientMockRecorder) IndexDoc ¶
func (mr *MockESClientMockRecorder) IndexDoc(ctx, index, docType, id, body interface{}) *gomock.Call
IndexDoc indicates an expected call of IndexDoc.
func (*MockESClientMockRecorder) IndexDocWithoutType ¶ added in v0.53.1
func (mr *MockESClientMockRecorder) IndexDocWithoutType(ctx, index, id, body interface{}) *gomock.Call
IndexDocWithoutType indicates an expected call of IndexDocWithoutType.
func (*MockESClientMockRecorder) Ping ¶
func (mr *MockESClientMockRecorder) Ping(ctx, url interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockESClientMockRecorder) SearchDoc ¶
func (mr *MockESClientMockRecorder) SearchDoc(ctx, indices, docType, query, sorts, from, size interface{}) *gomock.Call
SearchDoc indicates an expected call of SearchDoc.
Click to show internal directories.
Click to hide internal directories.