Versions in this module Expand all Collapse all v1 v1.0.1 Feb 11, 2020 Changes in this version + type EsClient struct + func CreateEsClient(hosts []string) (EsClient, error) + func (ec EsClient) BulkInsert(index string, typ string, arr []interface{}) error + func (ec EsClient) CreateEsIndex(index string, shardNum int32, replicaNum int32, refreshInterval int32) error + func (ec EsClient) DeleteEsIndex(index string) error + func (ec EsClient) Insert(index string, typ string, msg interface{}) error + func (ec EsClient) InsertWithDocId(index string, typ string, docID string, msg interface{}) error + type EsClientV3 struct + func CreateEsClientV3(hosts []string) (EsClientV3, error) + func (ec EsClientV3) BulkInsert(index string, typ string, arr []interface{}) error + func (ec EsClientV3) CreateEsIndex(index string, shardNum int32, replicaNum int32, refreshInterval int32) error + func (ec EsClientV3) DeleteEsIndex(index string) error + func (ec EsClientV3) Insert(index string, typ string, msg interface{}) error + func (ec EsClientV3) InsertWithDocId(index string, typ string, docID string, msg interface{}) error + type EsClientV5 struct + func CreateEsClientV5(hosts []string) (EsClientV5, error) + func (ec EsClientV5) BulkInsert(index string, typ string, arr []interface{}) error + func (ec EsClientV5) CreateEsIndex(index string, shardNum int32, replicaNum int32, refreshInterval int32) error + func (ec EsClientV5) DeleteEsIndex(index string) error + func (ec EsClientV5) Insert(index string, typ string, msg interface{}) error + func (ec EsClientV5) InsertWithDocId(index string, typ string, docID string, msg interface{}) error