Versions in this module Expand all Collapse all v0 v0.8.0 Jun 24, 2017 Changes in this version + func IsStrictPerms() bool + func NewFlagOverwrite(set *flag.FlagSet, config *Config, name, path, def, usage string) *string + type ClusterConfig struct + Name string + Seeds string + type Config ucfg.Config + func LoadFile(path string) (*Config, error) + func LoadFiles(paths ...string) (*Config, error) + func MergeConfigs(cfgs ...*Config) (*Config, error) + func NewConfig() *Config + func NewConfigFrom(from interface{}) (*Config, error) + func NewConfigWithYAML(in []byte, source string) (*Config, error) + func NewFlagConfig(set *flag.FlagSet, def *Config, name string, usage string) *Config + func (c *Config) Bool(name string, idx int) (bool, error) + func (c *Config) Child(name string, idx int) (*Config, error) + func (c *Config) CountField(name string) (int, error) + func (c *Config) Enabled() bool + func (c *Config) Float(name string, idx int) (float64, error) + func (c *Config) GetFields() []string + func (c *Config) HasField(name string) bool + func (c *Config) Int(name string, idx int) (int64, error) + func (c *Config) IsArray() bool + func (c *Config) IsDict() bool + func (c *Config) Merge(from interface{}) error + func (c *Config) Path() string + func (c *Config) PathOf(field string) string + func (c *Config) SetBool(name string, idx int, value bool) error + func (c *Config) SetChild(name string, idx int, value *Config) error + func (c *Config) SetFloat(name string, idx int, value float64) error + func (c *Config) SetInt(name string, idx int, value int64) error + func (c *Config) SetString(name string, idx int, value string) error + func (c *Config) String(name string, idx int) (string, error) + func (c *Config) Unpack(to interface{}) error + type ConfigNamespace struct + C map[string]*Config + func (ns *ConfigNamespace) Config() *Config + func (ns *ConfigNamespace) IsSet() bool + func (ns *ConfigNamespace) Name() string + func (ns *ConfigNamespace) Validate() error + type LoggingConfig struct + FileFilterPattern string + FuncFilterPattern string + LogLevel string + MessageFilterPattern string + PushLogLevel string + RealtimePushEnabled bool + type MatchRule struct + Contain []string + NotContain []string + Prefix []string + Suffix []string + type MustMatchRule struct + type MustNotMatchRule struct + type NetworkConfig struct + Host string + type NodeConfig struct + Name string + type PathConfig struct + Cert string + Data string + Log string + type RuntimeConfig struct + Modules []*Config + type ShouldMatchRule struct + type SystemConfig struct + APIBinding string + AllowMultiInstance bool + ClusterBinding string + ClusterConfig ClusterConfig + ConfigFile string + HttpBinding string + NetworkConfig NetworkConfig + NodeConfig NodeConfig + PathConfig PathConfig + TLSEnabled bool + func (this *SystemConfig) GetDataDir() string