Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HealthyProcessTime is the default time a process needs to stay alive to be considered healthy HealthyProcessTime time.Duration = 30 * time.Minute // HealthyCrashCount is the amount of times a process can crash (within the healthyProcessTime) before being considered unstable - it may be trying to find a port HealthyCrashCount int = 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnvConfig ¶
type EnvConfig struct { // Name is the name of the environment variable Name string `mapstructure:"name"` // Value is the value of the variable Value string `mapstructure:"value"` }
EnvConfig is the config definition of each key-value pair for environment variables
type SubprocessConfig ¶
type SubprocessConfig struct { // Command is the command to be run (binary + flags, separated by commas) Command string `mapstructure:"exec"` // Port is the port assigned to the Receiver, and to the {{port}} template variables Port int `mapstructure:"port"` // Env is a list of env variables to pass to a specific command Env []EnvConfig `mapstructure:"env"` }
SubprocessConfig is the config definition for the subprocess manager
Click to show internal directories.
Click to hide internal directories.