Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorUnexpectedStatusCode = errors.New("unexpected status code from elasticsearch api")
ErrorUnexpectedStatusCode represents the error message to be returned when the status received from elastic is not as expected
Functions ¶
func CallElastic ¶
func CallElastic(ctx context.Context, path, method string, payload interface{}) ([]byte, int, error)
CallElastic builds a request to elastic search based on the method, path and payload
func DeleteIndex ¶
DeleteIndex removes a specified index from elasticsearch
Types ¶
Click to show internal directories.
Click to hide internal directories.