Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Listen string `yaml:"listen"` ProbePath string `yaml:"probe_path"` MetricsPath string `yaml:"metrics_path"` Timeout float64 `yaml:"timeout"` Devices []*Device `yaml:"devices"` Global Global `yaml:"global"` // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() Config
func (*Config) UnmarshalYAML ¶
type Options ¶
type Options struct { ExportOLT bool `yaml:"export_olt"` ExportONUs bool `yaml:"export_onus"` ExportMACTable bool `yaml:"export_mac_table"` }
func DefaultOptions ¶
func DefaultOptions() Options
func (*Options) UnmarshalYAML ¶
type SafeConfig ¶
func New ¶
func New(configFile string) SafeConfig
func (*SafeConfig) Get ¶
func (sc *SafeConfig) Get() *Config
func (*SafeConfig) LoadConfig ¶
func (sc *SafeConfig) LoadConfig() (err error)
Click to show internal directories.
Click to hide internal directories.