Help us shape the future of Go! Take the 2026 Go Developer Survey

es

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticSearch

type ElasticSearch struct {
	Elastic *elastic.Client
	// contains filtered or unexported fields
}

func (*ElasticSearch) AddDocument

func (e *ElasticSearch) AddDocument(database, table string, doc map[string]any, searchFields []string) (string, error)

func (*ElasticSearch) AddDocuments

func (e *ElasticSearch) AddDocuments(database, table string, docs []map[string]any, searchFields []string) ([]string, error)

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(elasticConfigData []byte)

func (*ElasticSearch) UpdateDocument

func (e *ElasticSearch) UpdateDocument(database, table, id string, updateData map[string]any) (bool, error)

Jump to

Keyboard shortcuts

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