generator

package
v0.0.0-...-77af6d7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

func GetPwd

func GetPwd() string

Types

type AppConfig

type AppConfig struct {
	Version     string    `yaml:"version"`
	Name        string    `yaml:"name"`
	PackagePath string    `yaml:"package-path"`
	AppVersion  string    `yaml:"app-version"`
	Schemas     []*Schema `yaml:"schemas"`
	Flows       []*Flow   `yaml:"flows"`
}

type Flow

type Flow struct {
	Name         string      `yaml:"name"`
	Upstream     string      `yaml:"upstream"`
	Downstream   string      `yaml:"downstream"`
	Dependencies []string    `yaml:"dependencies"`
	Mapping      interface{} `yaml:"mapping"`
}

type Generator

type Generator struct {
	Config *AppConfig
}

func (*Generator) GenerateBase

func (g *Generator) GenerateBase() error

func (*Generator) GenerateSchema

func (g *Generator) GenerateSchema() error

func (*Generator) GenerateTransformer

func (g *Generator) GenerateTransformer() error

type Schema

type Schema struct {
	Name    string      `yaml:"name"`
	Payload interface{} `yaml:"payload"`
}

Jump to

Keyboard shortcuts

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