Versions in this module Expand all Collapse all v2 v2.0.2 Jun 15, 2019 v2.0.1 Jun 12, 2019 Changes in this version + type Client struct + func CreateClient(cfg Config) *Client + func (es *Client) Get(url string) (int, []byte, error) + func (es *Client) Post(url string, data []byte) (int, Result, *ErrorResponse, error) + func (es *Client) PostObj(url string, dataObj interface{}) (int, Result, *ErrorResponse, error) + func (es *Client) PostObjUnmarshal(url string, dataObj interface{}, retObj interface{}) (int, *ErrorResponse, error) + func (es *Client) Put(url string, data []byte) (int, Result, *ErrorResponse, error) + func (es *Client) PutObj(url string, dataObj interface{}) (int, Result, *ErrorResponse, error) + func (es *Client) SendEsMapping(mapping IndexTemplate) (int, Result, *ErrorResponse, error) + type Config struct + ElasticServer string + HttpClient *http.Client + Log *zap.Logger + type ErrorCause struct + Index string + IndexUuid string + Reason string + ResourceId string + ResourceType string + RootCause []ErrorCause + Type string + type ErrorResponse struct + Message string + type HitsMeta struct + Hits []Result + MaxScore float64 + Total int + type IndexTemplate struct + Name string + Template Obj + type Obj map[string]interface + type Result struct + Error string + Found bool + Id string + Index string + PrimaryTerm int + ResultType string + SeqNo int + Shards struct{ ... } + Source map[string]interface{} + Status int + Type string + Version int + type SearchResults struct + Error string + Hits HitsMeta + Shards struct{ ... } + Status int + TimedOut bool + Took int Other modules containing this package github.com/txn2/es