Documentation
¶
Overview ¶
Returns the current status and available results for an async SQL search or stored synchronous SQL search
Index ¶
- Variables
- type GetAsync
- func (r *GetAsync) Delimiter(value string) *GetAsync
- func (r GetAsync) Do(ctx context.Context) (*http.Response, error)
- func (r *GetAsync) Format(value string) *GetAsync
- func (r *GetAsync) Header(key, value string) *GetAsync
- func (r *GetAsync) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *GetAsync) Id(v string) *GetAsync
- func (r GetAsync) IsSuccess(ctx context.Context) (bool, error)
- func (r *GetAsync) KeepAlive(value string) *GetAsync
- func (r *GetAsync) WaitForCompletionTimeout(value string) *GetAsync
- type NewGetAsync
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type GetAsync ¶
type GetAsync struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetAsync
Returns the current status and available results for an async SQL search or stored synchronous SQL search
https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-sql-search-api.html
func (*GetAsync) Delimiter ¶
Delimiter Separator for CSV results. The API only supports this parameter for CSV responses. API name: delimiter
func (*GetAsync) Format ¶
Format Format for the response. You must specify a format using this parameter or the Accept HTTP header. If you specify both, the API uses this parameter. API name: format
func (*GetAsync) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (GetAsync) IsSuccess ¶
IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.
func (*GetAsync) KeepAlive ¶
KeepAlive Retention period for the search and its results. Defaults to the `keep_alive` period for the original SQL search. API name: keep_alive
func (*GetAsync) WaitForCompletionTimeout ¶
WaitForCompletionTimeout Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. API name: wait_for_completion_timeout
type NewGetAsync ¶
NewGetAsync type alias for index.
func NewGetAsyncFunc ¶
func NewGetAsyncFunc(tp elastictransport.Interface) NewGetAsync
NewGetAsyncFunc returns a new instance of GetAsync with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.