Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Transmission struct { URL string Interval time.Duration } Sonarr struct { URL string APIKey string Interval time.Duration } Radarr struct { URL string APIKey string Interval time.Duration } Plex struct { URL string UserName string Password string Interval time.Duration } OpenVPN struct { Bandwidth struct { FileName string Interval time.Duration } Connectivity struct { Proxy string ProxyURL *url.URL Token string Interval time.Duration } } }
Config contains the different possible services for github.com/clambin/mediamon to monitor
func ParseConfig ¶
ParseConfig reads the configuration from an in-memory buffer
func ParseConfigFile ¶
ParseConfigFile reads the configuration from the specified yaml file
Click to show internal directories.
Click to hide internal directories.