cmd

package
v0.0.0-...-eccb4fc Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: MIT, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CommonParams

type CommonParams struct {
	Debug    bool
	Limit    int // 导入导出的数量限制,0表示不限
	BulkSize int // 批量导出导入时没批次的数量,默认为1000

	// es config
	Host      string
	Port      int
	IndexName string
	DocType   string

	// import
	DeleteIndex bool   // 是否删除原索引
	Mapping     string // mapping 文件

	// export
	QueryField string
	QueryValue string

	CsvFilename string
}

Jump to

Keyboard shortcuts

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