moduleconfig

package
v0.133.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleConfig

type ModuleConfig struct {
	Dir string `toml:"-"` // Directory the module config was loaded from.

	Language  string   `toml:"language"`
	Realm     string   `toml:"realm"`
	Module    string   `toml:"module"`
	Build     string   `toml:"build"`
	Deploy    []string `toml:"deploy"`
	DeployDir string   `toml:"deploy-dir"`
	Schema    string   `toml:"schema"`
	Watch     []string `toml:"watch"`

	Go     ModuleGoConfig     `toml:"go,optional"`
	Kotlin ModuleKotlinConfig `toml:"kotlin,optional"`
}

ModuleConfig is the configuration for an FTL module.

Module config files are currently TOML.

func LoadModuleConfig

func LoadModuleConfig(dir string) (ModuleConfig, error)

LoadModuleConfig from a directory.

type ModuleGoConfig

type ModuleGoConfig struct{}

ModuleGoConfig is language-specific configuration for Go modules.

type ModuleKotlinConfig

type ModuleKotlinConfig struct{}

ModuleKotlinConfig is language-specific configuration for Kotlin modules.

Jump to

Keyboard shortcuts

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