esHandler

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Es *elasticsearch.Client
)

Functions

func EsInit

func EsInit(dumpInfo DumpInfo)

func Exporter

func Exporter(dumpInfo *DumpInfo, ch chan string) (err error)

从elasticsearch中导出索引

func Importer

func Importer(dumpInfo *DumpInfo, lineCount int, ch chan string)

func Read

func Read(r io.Reader) string

Types

type DumpInfo

type DumpInfo struct {
	User     string
	Password string
	Host     string
	Index    string
	Size     int
	Query    string
}

type EsIndex

type EsIndex struct {
	Index string `json:"_index"`
	Type  string `json:"_type"`
	Id    string `json:"_id"`
}

Jump to

Keyboard shortcuts

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