bleveindex

package
v0.0.0-...-e478a94 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(filepath string, infoFilePath string, entityChan chan Entity)

func ParseAndIndex

func ParseAndIndex(filePath, infoFilePath string)

Types

type Column

type Column struct {
	Index int    `yaml:"index"`
	Type  string `yaml:"type"`
	Name  string `yaml:"name"`
}

配置文件中每一项定义需要的字段是哪一列,什么数据类型、列名

func (Column) Parse

func (c Column) Parse(str string) interface{}

type ColumnsInfo

type ColumnsInfo []Column

type Entity

type Entity map[string]interface{}

type Info

type Info struct {
	Name    string      `yaml:"name"`
	Columns ColumnsInfo `yaml:"columns"`
}

func ParseFile

func ParseFile(filepath string) Info

Jump to

Keyboard shortcuts

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