esc

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 InitV7EsClient(addrs []string) (*EsClient7, error)

func InitV7EsClientBasic

func InitV7EsClientBasic(addrs []string, username, password string) (*EsClient7, error)

func InitV7EsClientCACert

func InitV7EsClientCACert(addrs []string, username, password, caCertFile string) (*EsClient7, error)

func InitV7EsClientCloud

func InitV7EsClientCloud(cloudId, apiKey string) (*EsClient7, error)

func InitV7EsClientFingerprint

func InitV7EsClientFingerprint(addrs []string, username, password, certFingerprint string) (*EsClient7, error)

func InitV7EsClientToken

func InitV7EsClientToken(addrs []string, token string) (*EsClient7, error)

func (*EsClient7) CreateDoc

func (esc *EsClient7) CreateDoc(index string, body string) (*Response7, error)

func (*EsClient7) CreateDocBatchMap

func (esc *EsClient7) CreateDocBatchMap(index string, docs []map[string]interface{}) (*Response7, error)

func (*EsClient7) CreateDocBatchString

func (esc *EsClient7) CreateDocBatchString(index string, docs []string) (*Response7, error)

func (*EsClient7) CreateDocMap

func (esc *EsClient7) CreateDocMap(index string, body map[string]interface{}) (*Response7, error)

func (*EsClient7) CreateIndex

func (esc *EsClient7) CreateIndex(name string) (*Response7, error)

func (*EsClient7) CreateIndexBodyMap

func (esc *EsClient7) CreateIndexBodyMap(name string, body map[string]interface{}) (*Response7, error)

func (*EsClient7) CreateIndexBodyString

func (esc *EsClient7) CreateIndexBodyString(name string, body string) (*Response7, error)

func (*EsClient7) DeleteDoc

func (esc *EsClient7) DeleteDoc(index, id string) (*Response7, error)

func (*EsClient7) DeleteDocMap

func (esc *EsClient7) DeleteDocMap(index string, params map[string]interface{}) (*Response7, error)

func (*EsClient7) DeleteDocModel

func (esc *EsClient7) DeleteDocModel(index string, model interface{}, tagName string) (*Response7, error)

func (*EsClient7) DeleteIndex

func (esc *EsClient7) DeleteIndex(name string) (*Response7, error)

func (*EsClient7) ExistsIndex

func (esc *EsClient7) ExistsIndex(name string) (*Response7, error)

func (*EsClient7) RetrieveDoc

func (esc *EsClient7) RetrieveDoc(index, id string) (*Response7, error)

func (*EsClient7) RetrieveDocCount

func (esc *EsClient7) RetrieveDocCount(index string, params map[string]interface{}) (*Response7, error)

func (*EsClient7) RetrieveDocCountMap

func (esc *EsClient7) RetrieveDocCountMap(index string, params map[string]interface{}) (*Response7, error)

func (*EsClient7) RetrieveDocCountModel

func (esc *EsClient7) RetrieveDocCountModel(index string, model interface{}, tagName string) (*Response7, error)

func (*EsClient7) RetrieveDocMap

func (esc *EsClient7) RetrieveDocMap(index string, query string) (*Response7, error)

func (*EsClient7) RetrieveDocMapList

func (esc *EsClient7) RetrieveDocMapList(pageSize, pageNo int, params map[string]interface{}, order, index string) (*Response7, error)

func (*EsClient7) RetrieveDocMatch

func (esc *EsClient7) RetrieveDocMatch(index string, query string) (*Response7, error)

func (*EsClient7) RetrieveDocModel

func (esc *EsClient7) RetrieveDocModel(index string, model interface{}, tagName string) (*Response7, error)

func (*EsClient7) RetrieveDocModelList

func (esc *EsClient7) RetrieveDocModelList(pageSize, pageNo int, model interface{}, tagName, order, index string) (*Response7, error)

func (*EsClient7) RetrieveDocSql

func (esc *EsClient7) RetrieveDocSql(sql string) (*Response7, error)

func (*EsClient7) RetrieveIndex

func (esc *EsClient7) RetrieveIndex(name string) (*Response7, error)

func (*EsClient7) UpdateDoc

func (esc *EsClient7) UpdateDoc(index, id string, body interface{}) (*Response7, error)

func (*EsClient7) UpdateDocMap

func (esc *EsClient7) UpdateDocMap(index, id string, params map[string]interface{}) (*Response7, error)

func (*EsClient7) UpdateDocModel

func (esc *EsClient7) UpdateDocModel(index, id string, model interface{}, tagName string) (*Response7, error)

func (*EsClient7) UpdateDocQuery

func (esc *EsClient7) UpdateDocQuery(index string, query, script string) (*Response7, error)

func (*EsClient7) UpdateDocQueryMap

func (esc *EsClient7) UpdateDocQueryMap(index string, query, params map[string]interface{}) (*Response7, error)

func (*EsClient7) UpdateDocQueryModel

func (esc *EsClient7) UpdateDocQueryModel(index string, whereModel, updateModel map[string]interface{}, tagName string) (*Response7, error)

type EsClient8

type EsClient8 struct {
	*elasticsearch8.Client
}

func InitV8EsClient

func InitV8EsClient(addrs []string) (*EsClient8, error)

func InitV8EsClientBasic

func InitV8EsClientBasic(addrs []string, username, password string) (*EsClient8, error)

func InitV8EsClientCACert

func InitV8EsClientCACert(addrs []string, username, password, caCertFile string) (*EsClient8, error)

func InitV8EsClientCloud

func InitV8EsClientCloud(cloudId, apiKey string) (*EsClient8, error)

func InitV8EsClientFingerprint

func InitV8EsClientFingerprint(addrs []string, username, password, certFingerprint string) (*EsClient8, error)

func InitV8EsClientToken

func InitV8EsClientToken(addrs []string, token string) (*EsClient8, error)

func (*EsClient8) CreateDoc

func (esc *EsClient8) CreateDoc(index string, body string) (*Response8, error)

func (*EsClient8) CreateDocBatchMap

func (esc *EsClient8) CreateDocBatchMap(index string, docs []map[string]interface{}) (*Response8, error)

func (*EsClient8) CreateDocBatchString

func (esc *EsClient8) CreateDocBatchString(index string, docs []string) (*Response8, error)

func (*EsClient8) CreateDocMap

func (esc *EsClient8) CreateDocMap(index string, body map[string]interface{}) (*Response8, error)

func (*EsClient8) CreateIndex

func (esc *EsClient8) CreateIndex(name string) (*Response8, error)

func (*EsClient8) CreateIndexBodyMap

func (esc *EsClient8) CreateIndexBodyMap(name string, body map[string]interface{}) (*Response8, error)

func (*EsClient8) CreateIndexBodyString

func (esc *EsClient8) CreateIndexBodyString(name string, body string) (*Response8, error)

func (*EsClient8) DeleteDoc

func (esc *EsClient8) DeleteDoc(index, id string) (*Response8, error)

func (*EsClient8) DeleteDocMap

func (esc *EsClient8) DeleteDocMap(index string, params map[string]interface{}) (*Response8, error)

func (*EsClient8) DeleteDocModel

func (esc *EsClient8) DeleteDocModel(index string, model interface{}, tagName string) (*Response8, error)

func (*EsClient8) DeleteIndex

func (esc *EsClient8) DeleteIndex(name string) (*Response8, error)

func (*EsClient8) ExistsIndex

func (esc *EsClient8) ExistsIndex(name string) (*Response8, error)

func (*EsClient8) RetrieveDoc

func (esc *EsClient8) RetrieveDoc(index, id string) (*Response8, error)

func (*EsClient8) RetrieveDocCount

func (esc *EsClient8) RetrieveDocCount(index string, params map[string]interface{}) (*Response8, error)

func (*EsClient8) RetrieveDocCountMap

func (esc *EsClient8) RetrieveDocCountMap(index string, params map[string]interface{}) (*Response8, error)

func (*EsClient8) RetrieveDocCountModel

func (esc *EsClient8) RetrieveDocCountModel(index string, model interface{}, tagName string) (*Response8, error)

func (*EsClient8) RetrieveDocMap

func (esc *EsClient8) RetrieveDocMap(index string, query string) (*Response8, error)

func (*EsClient8) RetrieveDocMapList

func (esc *EsClient8) RetrieveDocMapList(pageSize, pageNo int, params map[string]interface{}, order, index string) (*Response8, error)

func (*EsClient8) RetrieveDocMatch

func (esc *EsClient8) RetrieveDocMatch(index string, query string) (*Response8, error)

func (*EsClient8) RetrieveDocModel

func (esc *EsClient8) RetrieveDocModel(index string, model interface{}, tagName string) (*Response8, error)

func (*EsClient8) RetrieveDocModelList

func (esc *EsClient8) RetrieveDocModelList(pageSize, pageNo int, model interface{}, tagName, order, index string) (*Response8, error)

func (*EsClient8) RetrieveDocSql

func (esc *EsClient8) RetrieveDocSql(sql string) (*Response8, error)

func (*EsClient8) RetrieveIndex

func (esc *EsClient8) RetrieveIndex(name string) (*Response8, error)

func (*EsClient8) UpdateDoc

func (esc *EsClient8) UpdateDoc(index, id string, body interface{}) (*Response8, error)

func (*EsClient8) UpdateDocMap

func (esc *EsClient8) UpdateDocMap(index, id string, params map[string]interface{}) (*Response8, error)

func (*EsClient8) UpdateDocModel

func (esc *EsClient8) UpdateDocModel(index, id string, model interface{}, tagName string) (*Response8, error)

func (*EsClient8) UpdateDocQuery

func (esc *EsClient8) UpdateDocQuery(index string, query, script string) (*Response8, error)

func (*EsClient8) UpdateDocQueryMap

func (esc *EsClient8) UpdateDocQueryMap(index string, query, params map[string]interface{}) (*Response8, error)

func (*EsClient8) UpdateDocQueryModel

func (esc *EsClient8) UpdateDocQueryModel(index string, whereModel, updateModel map[string]interface{}, tagName string) (*Response8, error)

type Response7

type Response7 struct {
	*esapi.Response
}

type Response8

type Response8 struct {
	*esapi.Response
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL