Documentation ¶
Overview ¶
Returns the current status of an async SQL search or a stored synchronous SQL search
Index ¶
- Variables
- type GetAsyncStatus
- func (r GetAsyncStatus) Do(ctx context.Context) (*http.Response, error)
- func (r *GetAsyncStatus) Header(key, value string) *GetAsyncStatus
- func (r *GetAsyncStatus) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *GetAsyncStatus) Id(v string) *GetAsyncStatus
- func (r GetAsyncStatus) IsSuccess(ctx context.Context) (bool, error)
- type NewGetAsyncStatus
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 GetAsyncStatus ¶
type GetAsyncStatus struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetAsyncStatus
Returns the current status of an async SQL search or a stored synchronous SQL search
https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-sql-search-status-api.html
func (*GetAsyncStatus) Header ¶
func (r *GetAsyncStatus) Header(key, value string) *GetAsyncStatus
Header set a key, value pair in the GetAsyncStatus headers map.
func (*GetAsyncStatus) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*GetAsyncStatus) Id ¶
func (r *GetAsyncStatus) Id(v string) *GetAsyncStatus
Id The async search ID API Name: id
type NewGetAsyncStatus ¶
type NewGetAsyncStatus func(id string) *GetAsyncStatus
NewGetAsyncStatus type alias for index.
func NewGetAsyncStatusFunc ¶
func NewGetAsyncStatusFunc(tp elastictransport.Interface) NewGetAsyncStatus
NewGetAsyncStatusFunc returns a new instance of GetAsyncStatus with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.