Imports github.com/HomesNZ/elastic/uritemplates github.com/HomesNZ/elastic/config github.com/pkg/errors Standard library imports net/http/httputil compress/gzip bytes context encoding/json errors fmt io io/ioutil log math math/rand net/http net/url os reflect regexp runtime strconv strings sync sync/atomic time