config

package
v0.0.0-...-9264b10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile struct {
	Filename string       `yaml:"-"`
	Models   ModelsConfig `yaml:"models,omitempty"`
	Output   OutputConfig `yaml:"output,omitempty"`
}

func ParseConfig

func ParseConfig(filename string) *ConfigFile

func (*ConfigFile) IsValid

func (c *ConfigFile) IsValid() bool

type ModelsConfig

type ModelsConfig struct {
	PackageName  string   `yaml:"packageName,omitempty"`
	PackagePath  string   `yaml:"packagePath,omitempty"`
	IgnoredFiles []string `yaml:"ignoredFiles,omitempty"`
	PackageRoot  string
	ModuleRoot   string
}

func (*ModelsConfig) IsValid

func (mc *ModelsConfig) IsValid() bool

type OutputConfig

type OutputConfig struct {
	PackageName  string   `yaml:"packageName,omitempty"`
	PackagePath  string   `yaml:"packagePath,omitempty"`
	IgnoredFiles []string `yaml:"ignoredFiles,omitempty"`
	FileSuffix   string
}

func (*OutputConfig) IsValid

func (oc *OutputConfig) IsValid() bool

Jump to

Keyboard shortcuts

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