services

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 6 Imported by: 0

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

func ParseConfig(content []byte) (*Config, error)

ParseConfig reads the configuration from an in-memory buffer

func ParseConfigFile

func ParseConfigFile(fileName string) (*Config, error)

ParseConfigFile reads the configuration from the specified yaml file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL