helpers

package
v0.2.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL