esHandler

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 11 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)

Exporter 从elasticsearch中导出索引

func MetaData added in v0.1.9

func MetaData(str string, dumpInfo *DumpInfo) (mate, data []byte)

func PipeImporter added in v0.1.9

func PipeImporter(dumpInfo *DumpInfo, 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
	ExistsFilter 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