Documentation ¶
Index ¶
- type ElasticSearch
- func (e *ElasticSearch) AddDocument(database, table string, doc map[string]any, searchFields []string) (string, error)
- func (e *ElasticSearch) AddDocuments(database, table string, docs []map[string]any, searchFields []string) ([]string, error)
- func (e *ElasticSearch) Check() error
- func (e *ElasticSearch) Close()
- func (e *ElasticSearch) DeleteDatabase(database string) (bool, error)
- func (e *ElasticSearch) DeleteDocument(database, table string, id string) (bool, error)
- func (e *ElasticSearch) DeleteDocuments(database, table string, ids []string) (bool, error)
- func (e *ElasticSearch) DeleteTable(database, table string) (bool, error)
- func (e *ElasticSearch) Init(elasticConfigUrl string)
- func (e *ElasticSearch) UpdateDocument(database, table, id string, updateData map[string]any) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticSearch ¶
func (*ElasticSearch) AddDocument ¶
func (*ElasticSearch) AddDocuments ¶
func (*ElasticSearch) Check ¶
func (e *ElasticSearch) Check() error
func (*ElasticSearch) Close ¶
func (e *ElasticSearch) Close()
func (*ElasticSearch) DeleteDatabase ¶
func (e *ElasticSearch) DeleteDatabase(database string) (bool, error)
func (*ElasticSearch) DeleteDocument ¶
func (e *ElasticSearch) DeleteDocument(database, table string, id string) (bool, error)
func (*ElasticSearch) DeleteDocuments ¶
func (e *ElasticSearch) DeleteDocuments(database, table string, ids []string) (bool, error)
func (*ElasticSearch) DeleteTable ¶
func (e *ElasticSearch) DeleteTable(database, table string) (bool, error)
func (*ElasticSearch) Init ¶
func (e *ElasticSearch) Init(elasticConfigUrl string)
func (*ElasticSearch) UpdateDocument ¶
Click to show internal directories.
Click to hide internal directories.