Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ElasticsearchAPIDefaultScheme is the HTTP scheme for the default server. ElasticsearchAPIDefaultScheme string = "http" // ElasticsearchAPIDefaultHost is the HTTP host for the default server. ElasticsearchAPIDefaultHost string = "127.0.0.1:9200" // CreateSlug is the URL path part for creates. CreateSlug string = "_create" // UpdateSlug is the URL path part for updates. UpdateSlug string = "_update" // SearchSlug is the URL path part for search. SearchSlug string = "_search" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a API client for Elasticsearch.
func (*Client) BuildFastRequest ¶
BuildFastRequest builds a valyala/fasthttp HTTP request struct.
func (*Client) BuildURL ¶
BuildURL merges the URL info in the request with the Elasticsearch server info configured in the client.
func (*Client) SendFastRequest ¶
func (c *Client) SendFastRequest(esReq models.Request) (*fasthttp.Response, *fasthttp.Request, error)
SendFastRequest executes a valyala/fasthttp HTTP request and returns the response, request and error structs.
func (*Client) SetDefaults ¶
func (c *Client) SetDefaults()
SetDefaults sets default values where not specified.
Directories
¶
Path | Synopsis |
---|---|
docs
|
|
reference/docs-index
command
|
|
reference/indices-create-index
command
|
|
reference/query-dsl-bool-query
command
|
|
Click to show internal directories.
Click to hide internal directories.