package
0.0.0-20190212133917-c1d1bf9d46e4
Repository: https://github.com/marclop/elasticsearch-cli.git
Documentation: pkg.go.dev
# Functions
NewByteBody creates an io.ReadCloser from a slice of bytes.
NewClientConfig handles the parameters that will be used in the HTTP Client If a socket is passed as a URL (http://<host>:<port>), the complex URL will prevail from the passed port.
NewHTTP is the factory function for HTTP.
NewMock returns a pointer to http.Client with the mocked Transport.
NewStringBody creates an io.ReadCloser from a string.
NewStructBody creates an io.ReadCloser from a structure that is attempted to be encoded into JSON.
# Structs
Config contains the config http.Client that will be used for the http.Client.
HTTP Wraps an http.Client with its config.
MockResponse Wraps the response of the RoundTrip.
RoundTripper is aimed to be used as the Transport property in an http.Client in order to mock the responses that it would return in the normal execution.