Versions in this module Expand all Collapse all v0 v0.1.7 Mar 20, 2022 Changes in this version + var ErrNotSupportPipeline = errors.New("Only elasticv5,v6 support pipeline") + type ESLite interface + Begin func() error + Close func() + Commit func() error + Open func(host string, port int, userName, pass string) error + SetPipeline func(pipeline string) error + Write func(index string, id string, typ string, v interface{}) error + WriteDirect func(index string, id string, typ string, v interface{}) error + type ElasticClientV1 struct + func (es *ElasticClientV1) Begin() error + func (es *ElasticClientV1) Close() + func (es *ElasticClientV1) Commit() error + func (es *ElasticClientV1) Open(host string, port int, userName, pass string) error + func (es *ElasticClientV1) SetPipeline(pipeline string) error + func (es *ElasticClientV1) Write(index string, id string, typ string, v interface{}) error + func (es *ElasticClientV1) WriteDirect(index string, id string, typ string, v interface{}) error + type ElasticClientV2 struct + func (es *ElasticClientV2) Begin() error + func (es *ElasticClientV2) Close() + func (es *ElasticClientV2) Commit() error + func (es *ElasticClientV2) Open(host string, port int, userName, pass string) error + func (es *ElasticClientV2) SetPipeline(pipeline string) error + func (es *ElasticClientV2) Write(index string, id string, typ string, v interface{}) error + func (es *ElasticClientV2) WriteDirect(index string, id string, typ string, v interface{}) error + type ElasticClientV3 struct + func (es *ElasticClientV3) Begin() error + func (es *ElasticClientV3) Close() + func (es *ElasticClientV3) Commit(pipeline string) error + func (es *ElasticClientV3) Open(host string, port int, userName, pass string) error + func (es *ElasticClientV3) SetPipeline(pipeline string) error + func (es *ElasticClientV3) Write(index string, id string, typ string, v interface{}) error + func (es *ElasticClientV3) WriteDirect(index string, id string, typ string, v interface{}) error + type ElasticClientV5 struct + func (es *ElasticClientV5) Begin() error + func (es *ElasticClientV5) Close() + func (es *ElasticClientV5) Commit() error + func (es *ElasticClientV5) Open(host string, port int, usrName, pass string) error + func (es *ElasticClientV5) SetPipeline(pipeline string) error + func (es *ElasticClientV5) Write(index string, id string, typ string, v interface{}) error + func (es *ElasticClientV5) WriteDirect(index string, id string, typ string, v interface{}) error + type ElasticClientV6 struct + func (es *ElasticClientV6) Begin() error + func (es *ElasticClientV6) Close() + func (es *ElasticClientV6) Commit() error + func (es *ElasticClientV6) Open(host string, port int, usrName, pass string) error + func (es *ElasticClientV6) SetPipeline(pipeline string) error + func (es *ElasticClientV6) Write(index string, id string, typ string, v interface{}) error + func (es *ElasticClientV6) WriteDirect(index, id, typ string, v interface{}) error + type ElasticClientV7 struct + func (es *ElasticClientV7) Begin() error + func (es *ElasticClientV7) Close() + func (es *ElasticClientV7) Commit() error + func (es *ElasticClientV7) Open(host string, port int, usrName, pass string) error + func (es *ElasticClientV7) SetPipeline(pipeline string) error + func (es *ElasticClientV7) Write(index string, id string, typ string, v interface{}) error + func (es *ElasticClientV7) WriteDirect(index, id, typ string, v interface{}) error + type ElasticGoClient struct + func (es *ElasticGoClient) Begin() error + func (es *ElasticGoClient) Close() + func (es *ElasticGoClient) Commit() error + func (es *ElasticGoClient) Open(host string, port int, userName, pass string) error + func (es *ElasticGoClient) SetPipeline(pipeline string) error + func (es *ElasticGoClient) Write(index string, id string, typ string, v interface{}) error + func (es *ElasticGoClient) WriteDirect(index string, id string, typ string, v interface{}) error