Documentation ¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- type Client
- func (_m *Client) Count(ctx context.Context, index string, query string) (int64, error)
- func (_m *Client) CreateIndex(ctx context.Context, index string) error
- func (_m *Client) PutMapping(ctx context.Context, index string, root string, key string, valueType string) error
- func (_m *Client) RunBulkProcessor(ctx context.Context, p *elasticsearch.BulkProcessorParameters) (*elastic.BulkProcessor, error)
- func (_m *Client) Scroll(ctx context.Context, scrollID string) (*elastic.SearchResult, elasticsearch.ScrollService, error)
- func (_m *Client) ScrollFirstPage(ctx context.Context, index string, query string) (*elastic.SearchResult, elasticsearch.ScrollService, error)
- func (_m *Client) Search(ctx context.Context, p *elasticsearch.SearchParameters) (*elastic.SearchResult, error)
- func (_m *Client) SearchWithDSL(ctx context.Context, index string, query string) (*elastic.SearchResult, error)
- type ScrollService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) Count ¶ added in v0.5.8
Count provides a mock function with given fields: ctx, index, query
func (*Client) CreateIndex ¶ added in v0.7.0
CreateIndex provides a mock function with given fields: ctx, index
func (*Client) PutMapping ¶ added in v0.6.0
func (_m *Client) PutMapping(ctx context.Context, index string, root string, key string, valueType string) error
PutMapping provides a mock function with given fields: ctx, index, root, key, valueType
func (*Client) RunBulkProcessor ¶
func (_m *Client) RunBulkProcessor(ctx context.Context, p *elasticsearch.BulkProcessorParameters) (*elastic.BulkProcessor, error)
RunBulkProcessor provides a mock function with given fields: ctx, p
func (*Client) Scroll ¶ added in v0.5.8
func (_m *Client) Scroll(ctx context.Context, scrollID string) (*elastic.SearchResult, elasticsearch.ScrollService, error)
Scroll provides a mock function with given fields: ctx, scrollID
func (*Client) ScrollFirstPage ¶ added in v0.5.8
func (_m *Client) ScrollFirstPage(ctx context.Context, index string, query string) (*elastic.SearchResult, elasticsearch.ScrollService, error)
ScrollFirstPage provides a mock function with given fields: ctx, index, query
func (*Client) Search ¶
func (_m *Client) Search(ctx context.Context, p *elasticsearch.SearchParameters) (*elastic.SearchResult, error)
Search provides a mock function with given fields: ctx, p
func (*Client) SearchWithDSL ¶ added in v0.5.7
func (_m *Client) SearchWithDSL(ctx context.Context, index string, query string) (*elastic.SearchResult, error)
SearchWithDSL provides a mock function with given fields: ctx, index, query
type ScrollService ¶ added in v0.5.8
ScrollService is an autogenerated mock type for the ScrollService type