runner

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package runner is a package that provides a programmatic interface to the code generation tool.

Index

Constants

View Source
const (
	// AllGenerator is a constant to run all generators.
	AllGenerator = "all"
	// ModelGenerator is a constant to run the model generator.
	ModelGenerator = "model"
	// ConvertGenerator is a constant to run the convert generator.
	ConvertGenerator = "convert"
	// CustomGenerator is a constant to run the custom generator.
	CustomGenerator = "custom"
	// MigrationGenerator is a constant to run the migration generator.
	MigrationGenerator = "migration"
)

Variables

This section is empty.

Functions

func Execute

func Execute(vspecReader, definitionsReader io.Reader, generators []string, cfg Config) error

Execute runs the code generation tool.

Types

type Config

type Config struct {
	PackageName string
	OutputDir   string
	Custom      custom.Config
	Convert     convert.Config
	Migration   migration.Config
}

Config is the configuration for the code generation tool.

Jump to

Keyboard shortcuts

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