Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶
func LoadConfig ¶
Types ¶
type Config ¶
type Config struct { Debug bool `yaml:"debug",json:"debug"` Listen string `yaml:"listen",json:"listen"` WhiteList WhiteListConfig `yaml:"white_list",json:"whiteList"` Upgrade UpgradeConfig `yaml:"upgrade",json:"upgrade"` }
func DefaultConfig ¶
func DefaultConfig() *Config
type UpgradeConfig ¶
type UpgradeConfig struct { Mode string `yaml:"mode",json:"mode"` WatchingPath string `yaml:"watching_path",json:"watchingPath"` }
func (*UpgradeConfig) IsWatchingMode ¶
func (c *UpgradeConfig) IsWatchingMode() bool
func (*UpgradeConfig) Validate ¶
func (c *UpgradeConfig) Validate() error
type WhiteListConfig ¶
type WhiteListConfig struct {
ProcessPaths []string `yaml:"process_paths",json:"processPaths"`
}
func (*WhiteListConfig) Validate ¶
func (c *WhiteListConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.