Documentation
¶
Index ¶
- Variables
- type EsClient7
- func InitV7EsClient(addrs []string) (*EsClient7, error)
- func InitV7EsClientBasic(addrs []string, username, password string) (*EsClient7, error)
- func InitV7EsClientCACert(addrs []string, username, password, caCertFile string) (*EsClient7, error)
- func InitV7EsClientCloud(cloudId, apiKey string) (*EsClient7, error)
- func InitV7EsClientFingerprint(addrs []string, username, password, certFingerprint string) (*EsClient7, error)
- func InitV7EsClientToken(addrs []string, token string) (*EsClient7, error)
- func (esc *EsClient7) CreateDoc(index, body string) (*Response7, error)
- func (esc *EsClient7) CreateDocBatchMap(index string, docs []map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) CreateDocBatchString(index string, docs []string) (*Response7, error)
- func (esc *EsClient7) CreateDocMap(index string, body map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) CreateIndex(name string) (*Response7, error)
- func (esc *EsClient7) CreateIndexBodyMap(name string, body map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) CreateIndexBodyString(name, body string) (*Response7, error)
- func (esc *EsClient7) DeleteDoc(index, id string) (*Response7, error)
- func (esc *EsClient7) DeleteDocMap(index string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) DeleteDocModel(index string, model interface{}, tagName string) (*Response7, error)
- func (esc *EsClient7) DeleteIndex(name string) (*Response7, error)
- func (esc *EsClient7) ExistsIndex(name string) (*Response7, error)
- func (esc *EsClient7) ExistsIndexBool(name string) (bool, error)
- func (esc *EsClient7) RetrieveDoc(index, id string) (*Response7, error)
- func (esc *EsClient7) RetrieveDoc2Byte(index, id string) ([]byte, error)
- func (esc *EsClient7) RetrieveDoc2Map(index, id string) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveDocCountMap(index string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) RetrieveDocCountMapNum(index string, params map[string]interface{}) (uint64, error)
- func (esc *EsClient7) RetrieveDocCountMatch(index string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) RetrieveDocCountMatchNum(index string, params map[string]interface{}) (uint64, error)
- func (esc *EsClient7) RetrieveDocCountModel(index string, model interface{}, tagName string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocCountModelNum(index string, model interface{}, tagName string) (uint64, error)
- func (esc *EsClient7) RetrieveDocCountQuery(index, query string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocCountQueryNum(index, query string) (uint64, error)
- func (esc *EsClient7) RetrieveDocMap(index string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) RetrieveDocMap2Byte(index string, params map[string]interface{}) ([]byte, error)
- func (esc *EsClient7) RetrieveDocMap2Map(index string, params map[string]interface{}) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveDocMapList(pageSize, pageNo int, params map[string]interface{}, order, index string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocMapList2Byte(pageSize, pageNo int, params map[string]interface{}, order, index string) ([]byte, error)
- func (esc *EsClient7) RetrieveDocMapList2Map(pageSize, pageNo int, params map[string]interface{}, order, index string) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveDocMatch(index string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) RetrieveDocMatch2Byte(index string, params map[string]interface{}) ([]byte, error)
- func (esc *EsClient7) RetrieveDocMatch2Map(index string, params map[string]interface{}) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveDocModel(index string, model interface{}, tagName string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocModel2Byte(index string, model interface{}, tagName string) ([]byte, error)
- func (esc *EsClient7) RetrieveDocModel2Map(index string, model interface{}, tagName string) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveDocModelList(pageSize, pageNo int, model interface{}, tagName, order, index string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocModelList2Byte(pageSize, pageNo int, model interface{}, tagName, order, index string) ([]byte, error)
- func (esc *EsClient7) RetrieveDocModelList2Map(pageSize, pageNo int, model interface{}, tagName, order, index string) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveDocQuery(index, query string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocQuery2Byte(index, query string) ([]byte, error)
- func (esc *EsClient7) RetrieveDocQuery2Map(index, query string) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveDocSql(sql string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocSql2Byte(sql string) ([]byte, error)
- func (esc *EsClient7) RetrieveDocSql2Map(sql string) ([]map[string]interface{}, error)
- func (esc *EsClient7) RetrieveIndex(name string) (*Response7, error)
- func (esc *EsClient7) RetrieveIndexBool(name string) (bool, error)
- func (esc *EsClient7) UpdateDoc(index, id string, body interface{}) (*Response7, error)
- func (esc *EsClient7) UpdateDocMap(index, id string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) UpdateDocModel(index, id string, model interface{}, tagName string) (*Response7, error)
- func (esc *EsClient7) UpdateDocQuery(index, query, script string) (*Response7, error)
- func (esc *EsClient7) UpdateDocQueryMap(index string, query, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) UpdateDocQueryModel(index string, whereModel, updateModel map[string]interface{}, tagName string) (*Response7, error)
- type EsClient8
- func InitV8EsClient(addrs []string) (*EsClient8, error)
- func InitV8EsClientBasic(addrs []string, username, password string) (*EsClient8, error)
- func InitV8EsClientCACert(addrs []string, username, password, caCertFile string) (*EsClient8, error)
- func InitV8EsClientCloud(cloudId, apiKey string) (*EsClient8, error)
- func InitV8EsClientFingerprint(addrs []string, username, password, certFingerprint string) (*EsClient8, error)
- func InitV8EsClientToken(addrs []string, token string) (*EsClient8, error)
- func (esc *EsClient8) CreateDoc(index, body string) (*Response8, error)
- func (esc *EsClient8) CreateDocBatchMap(index string, docs []map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) CreateDocBatchString(index string, docs []string) (*Response8, error)
- func (esc *EsClient8) CreateDocMap(index string, body map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) CreateIndex(name string) (*Response8, error)
- func (esc *EsClient8) CreateIndexBodyMap(name string, body map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) CreateIndexBodyString(name, body string) (*Response8, error)
- func (esc *EsClient8) DeleteDoc(index, id string) (*Response8, error)
- func (esc *EsClient8) DeleteDocMap(index string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) DeleteDocModel(index string, model interface{}, tagName string) (*Response8, error)
- func (esc *EsClient8) DeleteIndex(name string) (*Response8, error)
- func (esc *EsClient8) ExistsIndex(name string) (*Response8, error)
- func (esc *EsClient8) ExistsIndexBool(name string) (bool, error)
- func (esc *EsClient8) RetrieveDoc(index, id string) (*Response8, error)
- func (esc *EsClient8) RetrieveDoc2Byte(index, id string) ([]byte, error)
- func (esc *EsClient8) RetrieveDoc2Map(index, id string) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveDocCountMap(index string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) RetrieveDocCountMapNum(index string, params map[string]interface{}) (uint64, error)
- func (esc *EsClient8) RetrieveDocCountMatch(index string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) RetrieveDocCountMatchNum(index string, params map[string]interface{}) (uint64, error)
- func (esc *EsClient8) RetrieveDocCountModel(index string, model interface{}, tagName string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocCountModelNum(index string, model interface{}, tagName string) (uint64, error)
- func (esc *EsClient8) RetrieveDocCountQuery(index, query string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocCountQueryNum(index, query string) (uint64, error)
- func (esc *EsClient8) RetrieveDocMap(index string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) RetrieveDocMap2Byte(index string, params map[string]interface{}) ([]byte, error)
- func (esc *EsClient8) RetrieveDocMap2Map(index string, params map[string]interface{}) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveDocMapList(pageSize, pageNo int, params map[string]interface{}, order, index string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocMapList2Byte(pageSize, pageNo int, params map[string]interface{}, order, index string) ([]byte, error)
- func (esc *EsClient8) RetrieveDocMapList2Map(pageSize, pageNo int, params map[string]interface{}, order, index string) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveDocMatch(index string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) RetrieveDocMatch2Byte(index string, params map[string]interface{}) ([]byte, error)
- func (esc *EsClient8) RetrieveDocMatch2Map(index string, params map[string]interface{}) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveDocModel(index string, model interface{}, tagName string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocModel2Byte(index string, model interface{}, tagName string) ([]byte, error)
- func (esc *EsClient8) RetrieveDocModel2Map(index string, model interface{}, tagName string) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveDocModelList(pageSize, pageNo int, model interface{}, tagName, order, index string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocModelList2Byte(pageSize, pageNo int, model interface{}, tagName, order, index string) ([]byte, error)
- func (esc *EsClient8) RetrieveDocModelList2Map(pageSize, pageNo int, model interface{}, tagName, order, index string) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveDocQuery(index, query string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocQuery2Byte(index, query string) ([]byte, error)
- func (esc *EsClient8) RetrieveDocQuery2Map(index, query string) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveDocSql(sql string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocSql2Byte(sql string) ([]byte, error)
- func (esc *EsClient8) RetrieveDocSql2Map(sql string) ([]map[string]interface{}, error)
- func (esc *EsClient8) RetrieveIndex(name string) (*Response8, error)
- func (esc *EsClient8) RetrieveIndexBool(name string) (bool, error)
- func (esc *EsClient8) UpdateDoc(index, id string, body interface{}) (*Response8, error)
- func (esc *EsClient8) UpdateDocMap(index, id string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) UpdateDocModel(index, id string, model interface{}, tagName string) (*Response8, error)
- func (esc *EsClient8) UpdateDocQuery(index, query, script string) (*Response8, error)
- func (esc *EsClient8) UpdateDocQueryMap(index string, query, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) UpdateDocQueryModel(index string, whereModel, updateModel map[string]interface{}, tagName string) (*Response8, error)
- type Response7
- type Response8
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLimit = 10 DefaultMaxLimit = 1000 )
Functions ¶
This section is empty.
Types ¶
type EsClient7 ¶
type EsClient7 struct {
*elasticsearch7.Client
}
func InitV7EsClient ¶
func InitV7EsClientBasic ¶
func InitV7EsClientCACert ¶
func InitV7EsClientCloud ¶
func InitV7EsClientToken ¶
func (*EsClient7) CreateDocBatchMap ¶
func (*EsClient7) CreateDocBatchString ¶
func (*EsClient7) CreateDocMap ¶
func (*EsClient7) CreateIndexBodyMap ¶
func (*EsClient7) CreateIndexBodyString ¶
func (*EsClient7) DeleteDocMap ¶
func (*EsClient7) DeleteDocModel ¶
func (*EsClient7) ExistsIndexBool ¶ added in v0.2.3
func (*EsClient7) RetrieveDoc ¶
func (*EsClient7) RetrieveDoc2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDoc2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveDocCountMap ¶
func (*EsClient7) RetrieveDocCountMapNum ¶ added in v0.2.3
func (*EsClient7) RetrieveDocCountMatch ¶ added in v0.2.3
func (*EsClient7) RetrieveDocCountMatchNum ¶ added in v0.2.3
func (*EsClient7) RetrieveDocCountModel ¶
func (*EsClient7) RetrieveDocCountModelNum ¶ added in v0.2.3
func (*EsClient7) RetrieveDocCountQuery ¶ added in v0.2.3
func (*EsClient7) RetrieveDocCountQueryNum ¶ added in v0.2.3
func (*EsClient7) RetrieveDocMap ¶
func (*EsClient7) RetrieveDocMap2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDocMap2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveDocMapList ¶
func (*EsClient7) RetrieveDocMapList2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDocMapList2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveDocMatch ¶
func (*EsClient7) RetrieveDocMatch2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDocMatch2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveDocModel ¶
func (*EsClient7) RetrieveDocModel2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDocModel2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveDocModelList ¶
func (*EsClient7) RetrieveDocModelList2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDocModelList2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveDocQuery ¶ added in v0.2.3
func (*EsClient7) RetrieveDocQuery2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDocQuery2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveDocSql ¶
func (*EsClient7) RetrieveDocSql2Byte ¶ added in v0.2.3
func (*EsClient7) RetrieveDocSql2Map ¶ added in v0.2.3
func (*EsClient7) RetrieveIndex ¶
func (*EsClient7) RetrieveIndexBool ¶ added in v0.2.3
func (*EsClient7) UpdateDocMap ¶
func (*EsClient7) UpdateDocModel ¶
func (*EsClient7) UpdateDocQuery ¶
func (*EsClient7) UpdateDocQueryMap ¶
type EsClient8 ¶
type EsClient8 struct {
*elasticsearch8.Client
}
func InitV8EsClient ¶
func InitV8EsClientBasic ¶
func InitV8EsClientCACert ¶
func InitV8EsClientCloud ¶
func InitV8EsClientToken ¶
func (*EsClient8) CreateDocBatchMap ¶
func (*EsClient8) CreateDocBatchString ¶
func (*EsClient8) CreateDocMap ¶
func (*EsClient8) CreateIndexBodyMap ¶
func (*EsClient8) CreateIndexBodyString ¶
func (*EsClient8) DeleteDocMap ¶
func (*EsClient8) DeleteDocModel ¶
func (*EsClient8) ExistsIndexBool ¶ added in v0.2.3
func (*EsClient8) RetrieveDoc ¶
func (*EsClient8) RetrieveDoc2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDoc2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveDocCountMap ¶
func (*EsClient8) RetrieveDocCountMapNum ¶ added in v0.2.3
func (*EsClient8) RetrieveDocCountMatch ¶ added in v0.2.3
func (*EsClient8) RetrieveDocCountMatchNum ¶ added in v0.2.3
func (*EsClient8) RetrieveDocCountModel ¶
func (*EsClient8) RetrieveDocCountModelNum ¶ added in v0.2.3
func (*EsClient8) RetrieveDocCountQuery ¶ added in v0.2.3
func (*EsClient8) RetrieveDocCountQueryNum ¶ added in v0.2.3
func (*EsClient8) RetrieveDocMap ¶
func (*EsClient8) RetrieveDocMap2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDocMap2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveDocMapList ¶
func (*EsClient8) RetrieveDocMapList2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDocMapList2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveDocMatch ¶
func (*EsClient8) RetrieveDocMatch2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDocMatch2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveDocModel ¶
func (*EsClient8) RetrieveDocModel2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDocModel2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveDocModelList ¶
func (*EsClient8) RetrieveDocModelList2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDocModelList2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveDocQuery ¶ added in v0.2.3
func (*EsClient8) RetrieveDocQuery2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDocQuery2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveDocSql ¶
func (*EsClient8) RetrieveDocSql2Byte ¶ added in v0.2.3
func (*EsClient8) RetrieveDocSql2Map ¶ added in v0.2.3
func (*EsClient8) RetrieveIndex ¶
func (*EsClient8) RetrieveIndexBool ¶ added in v0.2.3
func (*EsClient8) UpdateDocMap ¶
func (*EsClient8) UpdateDocModel ¶
func (*EsClient8) UpdateDocQuery ¶
func (*EsClient8) UpdateDocQueryMap ¶
Click to show internal directories.
Click to hide internal directories.