es

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	URL       string
	Username  string
	Password  string
	OdVersion int
}

func (*Client) MakeRequest

func (esClient *Client) MakeRequest(method string,
	endPoint string,
	body []byte,
	headers map[string]string) (Response, error)

MakeRequest initiate request to ES API

type Response

type Response struct {
	Status int
	Data   map[string]interface{}
}

Jump to

Keyboard shortcuts

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