Documentation ¶ Index ¶ type Config func ConfigFromFile(filePath string) (*Config, error) type Entry type Protocol type Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Services []Service `yaml:"services"` } func ConfigFromFile ¶ func ConfigFromFile(filePath string) (*Config, error) * Get config from yaml file type Entry ¶ type Entry map[string]string type Protocol ¶ type Protocol struct { Type string `yaml:"type"` Port int `yaml:"port"` Server string `yaml:"server"` Interval int64 `yaml:"interval"` Customs Entry `yaml:"customs"` } type Service ¶ type Service struct { Name string `yaml:"name"` Protocols []Protocol `yaml:"protocols"` } Source Files ¶ View all Source files config.go Directories ¶ Show internal Expand all Path Synopsis response Click to show internal directories. Click to hide internal directories.