Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticsearchError ¶
type ElasticsearchError struct { Error struct { RootCause []struct { Type string `json:"type"` Reason string `json:"reason"` IndexUUID string `json:"index_uuid,omitempty"` Index string `json:"index,omitempty"` } `json:"root_cause"` Type string `json:"type"` Reason string `json:"reason"` IndexUUID string `json:"index_uuid,omitempty"` Index string `json:"index,omitempty"` } `json:"error"` Status int `json:"status"` }
func ParseErrorResponse ¶
func ParseErrorResponse(jsonData []byte) (*ElasticsearchError, bool)
ParseErrorResponse parses the JSON response and checks for the error schema.
Click to show internal directories.
Click to hide internal directories.