config

package
v0.8.24 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SchemaFilename []string       `yaml:"schema"`
	Exec           PackageConfig  `yaml:"exec"`
	Model          PackageConfig  `yaml:"model"`
	Resolver       ResolverConfig `yaml:"resolver"`
	Force          []string       `yaml:"force"`
	AutoBind       []string       `yaml:"autobind"`
	Server         struct {
		Standalone bool `yaml:"standalone"`
	} `yaml:"server"`

	Sources             []*ast.Source      `yaml:"-"`
	Packages            *internal.Packages `yaml:"-"`
	Schema              *ast.Schema        `yaml:"-"`
	Root                string             `yaml:"-"`
	DefaultModelPackage *packages.Package  `yaml:"-"`
	ResolverFilename    string             `yaml:"-"`
}

func LoadConfigFile added in v0.8.17

func LoadConfigFile(moduleName string, filename string) (*Config, error)

func (*Config) Bind added in v0.8.16

func (c *Config) Bind(parsedTree *parser.Tree) error

func (*Config) LoadConfig added in v0.8.17

func (config *Config) LoadConfig(filename string) error

func (*Config) LoadSchema

func (c *Config) LoadSchema() error

type PackageConfig

type PackageConfig struct {
	Filename string
	Package  string
}

type ResolverConfig

type ResolverConfig struct {
	Layout           string `yaml:"layout"`
	Dir              string `yaml:"dir"`
	Package          string `yaml:"package"`
	FilenameTemplate string `yaml:"filename_template"`
}

Jump to

Keyboard shortcuts

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