Documentation ¶
Overview ¶
Copyright (c) 2017 Uber Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2017 Uber Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2017 Uber Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2017 Uber Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2017 Uber Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2017 Uber Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- type Client
- type IndexService
- func (_m *IndexService) BodyJson(body interface{}) es.IndexService
- func (_m *IndexService) Do(ctx context.Context) (*elastic.IndexResponse, error)
- func (_m *IndexService) Id(id string) es.IndexService
- func (_m *IndexService) Index(index string) es.IndexService
- func (_m *IndexService) Type(typ string) es.IndexService
- type IndicesCreateService
- type IndicesExistsService
- type MultiSearchService
- type SearchService
- func (_m *SearchService) Aggregation(name string, aggregation elastic.Aggregation) es.SearchService
- func (_m *SearchService) Do(ctx context.Context) (*elastic.SearchResult, error)
- func (_m *SearchService) IgnoreUnavailable(ignoreUnavailable bool) es.SearchService
- func (_m *SearchService) Query(query elastic.Query) es.SearchService
- func (_m *SearchService) Size(size int) es.SearchService
- func (_m *SearchService) Type(typ string) es.SearchService
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) CreateIndex ¶
func (_m *Client) CreateIndex(index string) es.IndicesCreateService
CreateIndex provides a mock function with given fields: index
func (*Client) Index ¶
func (_m *Client) Index() es.IndexService
Index provides a mock function with given fields:
func (*Client) IndexExists ¶
func (_m *Client) IndexExists(index string) es.IndicesExistsService
IndexExists provides a mock function with given fields: index
func (*Client) MultiSearch ¶ added in v0.6.0
func (_m *Client) MultiSearch() es.MultiSearchService
MultiSearch provides a mock function with given fields:
type IndexService ¶
IndexService is an autogenerated mock type for the IndexService type
func (*IndexService) BodyJson ¶
func (_m *IndexService) BodyJson(body interface{}) es.IndexService
BodyJson provides a mock function with given fields: body
func (*IndexService) Do ¶
func (_m *IndexService) Do(ctx context.Context) (*elastic.IndexResponse, error)
Do provides a mock function with given fields: ctx
func (*IndexService) Id ¶
func (_m *IndexService) Id(id string) es.IndexService
Id provides a mock function with given fields: id
func (*IndexService) Index ¶
func (_m *IndexService) Index(index string) es.IndexService
Index provides a mock function with given fields: index
func (*IndexService) Type ¶
func (_m *IndexService) Type(typ string) es.IndexService
Type provides a mock function with given fields: typ
type IndicesCreateService ¶
IndicesCreateService is an autogenerated mock type for the IndicesCreateService type
func (*IndicesCreateService) Body ¶
func (_m *IndicesCreateService) Body(mapping string) es.IndicesCreateService
Body provides a mock function with given fields: mapping
func (*IndicesCreateService) Do ¶
func (_m *IndicesCreateService) Do(ctx context.Context) (*elastic.IndicesCreateResult, error)
Do provides a mock function with given fields: ctx
type IndicesExistsService ¶
IndicesExistsService is an autogenerated mock type for the IndicesExistsService type
type MultiSearchService ¶ added in v0.6.0
MultiSearchService is an autogenerated mock type for the MultiSearchService type
func (*MultiSearchService) Add ¶ added in v0.6.0
func (_m *MultiSearchService) Add(requests ...*elastic.SearchRequest) es.MultiSearchService
Add provides a mock function with given fields: requests
func (*MultiSearchService) Do ¶ added in v0.6.0
func (_m *MultiSearchService) Do(ctx context.Context) (*elastic.MultiSearchResult, error)
Do provides a mock function with given fields: ctx
func (*MultiSearchService) Index ¶ added in v0.6.0
func (_m *MultiSearchService) Index(indices ...string) es.MultiSearchService
Index provides a mock function with given fields: indices
type SearchService ¶
SearchService is an autogenerated mock type for the SearchService type
func (*SearchService) Aggregation ¶
func (_m *SearchService) Aggregation(name string, aggregation elastic.Aggregation) es.SearchService
Aggregation provides a mock function with given fields: name, aggregation
func (*SearchService) Do ¶
func (_m *SearchService) Do(ctx context.Context) (*elastic.SearchResult, error)
Do provides a mock function with given fields: ctx
func (*SearchService) IgnoreUnavailable ¶ added in v0.6.0
func (_m *SearchService) IgnoreUnavailable(ignoreUnavailable bool) es.SearchService
IgnoreUnavailable provides a mock function with given fields: ignoreUnavailable
func (*SearchService) Query ¶
func (_m *SearchService) Query(query elastic.Query) es.SearchService
Query provides a mock function with given fields: query
func (*SearchService) Size ¶
func (_m *SearchService) Size(size int) es.SearchService
Size provides a mock function with given fields: size
func (*SearchService) Type ¶
func (_m *SearchService) Type(typ string) es.SearchService
Type provides a mock function with given fields: typ