config

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateConfig added in v0.8.0

func UpdateConfig(s Settings) error

UpdateConfig sets the configuration settings in the config TOML file.

Types

type Settings

type Settings struct {
	WebServerPort int
	CacheLifetime int
	SyncInterval  int
	Logging       logging   `toml:"logging"`
	LocalServer   plex.Host `toml:"localserver"`
	RemoteServer  plex.Host `toml:"remoteserver"`
}

Settings defines the program configureation

func GetConfig added in v0.8.0

func GetConfig() (Settings, error)

GetConfig returns the application configuration from the config TOML file.

Jump to

Keyboard shortcuts

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