config

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: GPL-3.0 Imports: 14 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,omitempty"`
	Exec           PackageConfig  `yaml:"exec"`
	Model          PackageConfig  `yaml:"model,omitempty"`
	Resolver       ResolverConfig `yaml:"resolver,omitempty"`
	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:"-"`
	ParsedTree          *parser.Tree       `yaml:"-"`
	ResolverFilename    string             `yaml:"-"`
}

func LoadConfig

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

LoadConfig reads the lambda.yaml config file

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,omitempty"`
	Dir              string `yaml:"dir,omitempty"`
	Package          string `yaml:"package,omitempty"`
	FilenameTemplate string `yaml:"filename_template,omitempty"`
}

Jump to

Keyboard shortcuts

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