config

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFileName = "gomon.config.yml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootDirectory  string              `yaml:"rootDirectory"`
	Command        []string            `yaml:"command"`
	Entrypoint     string              `yaml:"entrypoint"`
	EntrypointArgs []string            `yaml:"entrypointArgs"`
	EnvFiles       []string            `yaml:"envFiles"`
	ExcludePaths   []string            `yaml:"excludePaths"`
	HardReload     []string            `yaml:"hardReload"`
	SoftReload     []string            `yaml:"softReload"`
	Generated      map[string][]string `yaml:"generated"`
	Prestart       []string            `yaml:"prestart"`
	ProxyOnly      bool                `yaml:"proxyOnly"`
	Proxy          struct {
		Enabled    bool `yaml:"enabled"`
		Port       int  `yaml:"port"`
		Downstream struct {
			Host    string `yaml:"host"`
			Timeout int    `yaml:"timeout"`
		} `yaml:"downstream"`
	} `yaml:"proxy"`
	UI struct {
		Enabled bool `yaml:"enabled"`
		Port    int  `yaml:"port"`
	} `yaml:"ui"`
}

func New

func New(configPath string) (Config, error)

Jump to

Keyboard shortcuts

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