Documentation ¶
Overview ¶
Executes an ESQL request asynchronously
Index ¶
- Variables
- type AsyncQuery
- func (r AsyncQuery) Do(ctx context.Context) (bool, error)
- func (r *AsyncQuery) Header(key, value string) *AsyncQuery
- func (r *AsyncQuery) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r AsyncQuery) IsSuccess(providedCtx context.Context) (bool, error)
- func (r AsyncQuery) Perform(providedCtx context.Context) (*http.Response, error)
- type NewAsyncQuery
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 AsyncQuery ¶
type AsyncQuery struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *AsyncQuery
Executes an ESQL request asynchronously
https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-api.html
func (AsyncQuery) Do ¶
func (r AsyncQuery) Do(ctx context.Context) (bool, error)
Do runs the request through the transport, handle the response and returns a asyncquery.Response
func (*AsyncQuery) Header ¶
func (r *AsyncQuery) Header(key, value string) *AsyncQuery
Header set a key, value pair in the AsyncQuery headers map.
func (*AsyncQuery) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewAsyncQuery ¶
type NewAsyncQuery func() *AsyncQuery
NewAsyncQuery type alias for index.
func NewAsyncQueryFunc ¶
func NewAsyncQueryFunc(tp elastictransport.Interface) NewAsyncQuery
NewAsyncQueryFunc returns a new instance of AsyncQuery with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.