gateway

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAirToml added in v0.0.30

func ConvertAirToml(inputPath string) error

Types

type AirConfig added in v0.0.30

type AirConfig struct {
	Root   string      `toml:"root"`
	TmpDir string      `toml:"tmp_dir"`
	Build  BuildConfig `toml:"build"`
	Log    LogConfig   `toml:"log"`
	Misc   MiscConfig  `toml:"misc"`
	Color  ColorConfig `toml:"color"`
}

AirConfig represents the structure of a .air.toml file.

type BuildConfig added in v0.0.30

type BuildConfig struct {
	Cmd          string   `toml:"cmd"`
	Bin          string   `toml:"bin"`
	PreCmd       []string `toml:"pre_cmd"`
	PostCmd      []string `toml:"post_cmd"`
	IncludeExt   []string `toml:"include_ext"`
	ExcludeDir   []string `toml:"exclude_dir"`
	ExcludeFile  []string `toml:"exclude_file"`
	IncludeDir   []string `toml:"include_dir"`
	ExcludeRegex []string `toml:"exclude_regex"`
	StopOnError  bool     `toml:"stop_on_error"`
	Delay        int      `toml:"delay"`
}

type ColorConfig added in v0.0.30

type ColorConfig struct {
	Main    string `toml:"main"`
	Watcher string `toml:"watcher"`
	Build   string `toml:"build"`
	Runner  string `toml:"runner"`
}

type LogConfig added in v0.0.30

type LogConfig struct {
	LogName        string `toml:"log_name"`
	RedirectOutput bool   `toml:"redirect_output"`
}

type MiscConfig added in v0.0.30

type MiscConfig struct {
	CleanOnExit bool `toml:"clean_on_exit"`
}

Jump to

Keyboard shortcuts

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