Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { OutFile string `yaml:"outfile"` API struct { Username string `yaml:"username"` Password string `yaml:"password"` CertFile string `yaml:"certfile"` URL string `yaml:"url"` } `yaml:"api"` Logging struct { Journal bool `yaml:"journal"` LevelStr string `yaml:"level"` } `yaml:"logging"` }
Config contains the njmon_exporter configuration data
func ParseConfig ¶
ParseConfig imports a yaml formatted config file into a Config struct
func (*Config) WriteConfig ¶
WriteConfig will create a YAML formatted config file from a Config struct
Click to show internal directories.
Click to hide internal directories.