Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultConfigFile = "wingman.yaml"
Variables ¶
This section is empty.
Functions ¶
func NewConfigFromFile ¶
Types ¶
type Config ¶
type Config struct { Version float64 `yaml:"version"` Module string `yaml:"module"` Env map[string]string `yaml:"env,omitempty"` BuildDir string `yaml:"build_dir"` Watchers Watchers `yaml:"watchers"` Services map[string]ServiceConfig `yaml:"services"` Proxy Proxy `yaml:"proxy"` ServiceGroups map[string][]string `yaml:"service_groups"` }
type Proxy ¶
type Proxy struct { Enabled bool `yaml:"enabled"` Port int `yaml:"port"` Address string `yaml:"address"` APIPrefix string `yaml:"api_prefix"` LogRequests bool `yaml:"log_requests"` Storage ProxyStorage `yaml:"storage,omitempty"` SPA ProxySPA `yaml:"spa,omitempty"` Static ProxyStatic `yaml:"static,omitempty"` }
type ProxyStatic ¶
type ProxyStorage ¶
type ServiceConfig ¶
type ServiceConfig struct { Entrypoint string `yaml:"entrypoint"` Executable string `yaml:"executable"` Env map[string]string `yaml:"env"` ProxyHandle string `yaml:"proxy_handle"` ProxyAddress string `yaml:"proxy_address"` ProxyPort int `yaml:"proxy_port"` LDFlags map[string]string `yaml:"ldflags"` }
Click to show internal directories.
Click to hide internal directories.