Versions in this module Expand all Collapse all v0 v0.6.3 Apr 7, 2019 v0.6.2 Apr 7, 2019 Changes in this version + type Config struct + ProgramGroup *ProcessGroup + func NewConfig(configFile string) *Config + func (c *Config) GetConfigFileDir() string + func (c *Config) GetEntries(filterFunc func(entry *ConfigEntry) bool) []*ConfigEntry + func (c *Config) GetEventListeners() []*ConfigEntry + func (c *Config) GetGroups() []*ConfigEntry + func (c *Config) GetInetHttpServer() (*ConfigEntry, bool) + func (c *Config) GetProgram(name string) *ConfigEntry + func (c *Config) GetProgramNames() []string + func (c *Config) GetPrograms() []*ConfigEntry + func (c *Config) GetSupervisorctl() (*ConfigEntry, bool) + func (c *Config) GetSupervisord() (*ConfigEntry, bool) + func (c *Config) GetUnixHttpServer() (*ConfigEntry, bool) + func (c *Config) Load() ([]string, error) + func (c *Config) RemoveProgram(programName string) + func (c *Config) String() string + type ConfigEntry struct + ConfigDir string + Group string + Name string + func NewConfigEntry(configDir string) *ConfigEntry + func (c *ConfigEntry) GetBool(key string, defValue bool) bool + func (c *ConfigEntry) GetBytes(key string, defValue int) int + func (c *ConfigEntry) GetEnv(key string) []string + func (c *ConfigEntry) GetEventListenerName() string + func (c *ConfigEntry) GetGroupName() string + func (c *ConfigEntry) GetInt(key string, defValue int) int + func (c *ConfigEntry) GetProgramName() string + func (c *ConfigEntry) GetPrograms() []string + func (c *ConfigEntry) GetString(key string, defValue string) string + func (c *ConfigEntry) GetStringArray(key string, sep string) []string + func (c *ConfigEntry) GetStringExpression(key string, defValue string) string + func (c *ConfigEntry) HasParameter(key string) bool + func (c *ConfigEntry) IsEventListener() bool + func (c *ConfigEntry) IsGroup() bool + func (c *ConfigEntry) IsProgram() bool + func (c *ConfigEntry) String() string + type ProcessGroup struct + func NewProcessGroup() *ProcessGroup + func (pg *ProcessGroup) Add(group string, procName string) + func (pg *ProcessGroup) Clone() *ProcessGroup + func (pg *ProcessGroup) ForEachProcess(procFunc func(group string, procName string)) + func (pg *ProcessGroup) GetAllGroup() []string + func (pg *ProcessGroup) GetAllProcess(group string) []string + func (pg *ProcessGroup) GetGroup(procName string, defGroup string) string + func (pg *ProcessGroup) InGroup(procName string, group string) bool + func (pg *ProcessGroup) Remove(procName string) + func (pg *ProcessGroup) String() string + func (pg *ProcessGroup) Sub(other *ProcessGroup) (added []string, changed []string, removed []string) + type ProcessSorter struct + func NewProcessSorter() *ProcessSorter + func (p *ProcessSorter) SortProgram(program_configs []*ConfigEntry) []*ConfigEntry + type ProgramByPriority []*ConfigEntry + func (p ProgramByPriority) Len() int + func (p ProgramByPriority) Less(i, j int) bool + func (p ProgramByPriority) Swap(i, j int) + type StringExpression struct + func NewStringExpression(envs ...string) *StringExpression + func (se *StringExpression) Add(key string, value string) *StringExpression + func (se *StringExpression) Eval(s string) (string, error)