Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPollingInterval = 3 * time.Second
DefaultPollingInterval is 3 seconds for file changes.
View Source
const (
// PlatformWindows const for windows
PlatformWindows = "windows"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v1.40.4
type Config struct { Root string `toml:"root"` TmpDir string `toml:"tmp_dir"` TestDataDir string `toml:"testdata_dir"` Polling cfgPolling `toml:"polling"` Build cfgBuild `toml:"build"` Color cfgColor `toml:"color"` Log cfgLog `toml:"log"` Misc cfgMisc `toml:"misc"` Screen cfgScreen `toml:"screen"` }
Config is the main configuration structure for Air.
func InitConfig ¶ added in v1.40.4
InitConfig initializes the configuration.
func (*Config) GetPollingInterval ¶ added in v1.40.5
GetPollingInterval returns the polling interval.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine ...
func NewEngineWithConfig ¶ added in v1.40.4
NewEngineWithConfig ...
Click to show internal directories.
Click to hide internal directories.