config

package
v0.0.0-...-a2e4361 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVConfig

type CSVConfig struct {
	WithHeader bool `yaml:"withHeader"`
	WithLabel  bool `yaml:"withLabel"`
}

type Edge

type Edge struct {
	Name        string `yaml:"name"`
	WithRanking bool   `yaml:"withRanking"`
	Props       []Prop `yaml:"props"`
}

type ErrConfig

type ErrConfig struct {
	FailDataPath string `yaml:"failDataPath"`
	LogPath      string `yaml:"logPath"`
}

type File

type File struct {
	Path      string    `yaml:"path"`
	BatchSize int       `yaml:"batchSize"`
	Type      string    `yaml:"type"`
	CSV       CSVConfig `yaml:"csv"`
	Schema    Schema    `yaml:"schema"`
	Error     ErrConfig `yaml:"error"`
}

type NebulaClientConnection

type NebulaClientConnection struct {
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Address  string `yaml:"address"`
}

type NebulaClientSettings

type NebulaClientSettings struct {
	Concurrency int                    `yaml:"concurrency"`
	Connection  NebulaClientConnection `yaml:"connection"`
}

type Prop

type Prop struct {
	Name string `yaml:"name"`
	Type string `yaml:"type"`
}

type Schema

type Schema struct {
	Space  string `yaml:"space"`
	Type   string `yaml:"type"`
	Edge   Edge   `yaml:"edge"`
	Vertex Vertex `yaml:"vertex"`
}

type Tag

type Tag struct {
	Name  string `yaml:"name"`
	Props []Prop `yaml:"props"`
}

type Vertex

type Vertex struct {
	Tags []Tag `yaml:"tags"`
}

type YAMLConfig

type YAMLConfig struct {
	Version              string               `yaml:"version"`
	Description          string               `yaml:"description"`
	NebulaClientSettings NebulaClientSettings `yaml:"settings"`
	Files                []File               `yaml:"files"`
}

func Parse

func Parse(filename string) (YAMLConfig, error)

Jump to

Keyboard shortcuts

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