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 string, 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 string, 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) RetrieveDoc(index, id string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocCount(index string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) RetrieveDocCountMap(index string, params map[string]interface{}) (*Response7, error)
- func (esc *EsClient7) RetrieveDocCountModel(index string, model interface{}, tagName string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocMap(index string, query string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocMapList(pageSize, pageNo int, params map[string]interface{}, order, index string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocMatch(index string, query string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocModel(index string, model interface{}, tagName string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocModelList(pageSize, pageNo int, model interface{}, tagName, order, index string) (*Response7, error)
- func (esc *EsClient7) RetrieveDocSql(sql string) (*Response7, error)
- func (esc *EsClient7) RetrieveIndex(name string) (*Response7, 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 string, 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 string, 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 string, 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) RetrieveDoc(index, id string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocCount(index string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) RetrieveDocCountMap(index string, params map[string]interface{}) (*Response8, error)
- func (esc *EsClient8) RetrieveDocCountModel(index string, model interface{}, tagName string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocMap(index string, query string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocMapList(pageSize, pageNo int, params map[string]interface{}, order, index string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocMatch(index string, query string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocModel(index string, model interface{}, tagName string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocModelList(pageSize, pageNo int, model interface{}, tagName, order, index string) (*Response8, error)
- func (esc *EsClient8) RetrieveDocSql(sql string) (*Response8, error)
- func (esc *EsClient8) RetrieveIndex(name string) (*Response8, 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 string, 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) RetrieveDoc ¶
func (*EsClient7) RetrieveDocCount ¶
func (*EsClient7) RetrieveDocCountMap ¶
func (*EsClient7) RetrieveDocCountModel ¶
func (*EsClient7) RetrieveDocMap ¶
func (*EsClient7) RetrieveDocMapList ¶
func (*EsClient7) RetrieveDocMatch ¶
func (*EsClient7) RetrieveDocModel ¶
func (*EsClient7) RetrieveDocModelList ¶
func (*EsClient7) RetrieveDocSql ¶
func (*EsClient7) RetrieveIndex ¶
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) RetrieveDoc ¶
func (*EsClient8) RetrieveDocCount ¶
func (*EsClient8) RetrieveDocCountMap ¶
func (*EsClient8) RetrieveDocCountModel ¶
func (*EsClient8) RetrieveDocMap ¶
func (*EsClient8) RetrieveDocMapList ¶
func (*EsClient8) RetrieveDocMatch ¶
func (*EsClient8) RetrieveDocModel ¶
func (*EsClient8) RetrieveDocModelList ¶
func (*EsClient8) RetrieveDocSql ¶
func (*EsClient8) RetrieveIndex ¶
func (*EsClient8) UpdateDocMap ¶
func (*EsClient8) UpdateDocModel ¶
func (*EsClient8) UpdateDocQuery ¶
func (*EsClient8) UpdateDocQueryMap ¶
Click to show internal directories.
Click to hide internal directories.