config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeConfig

func MergeConfig(conf *PlexConfig, c *cli.Context)

Types

type PlexConfig

type PlexConfig struct {
	ListenAddress string             `yaml:"address" flag:"listen-address"`
	LogLevel      string             `yaml:"logLevel" flag:"log-level"`
	LogFormat     string             `yaml:"logFormat" flag:"format"`
	AutoDiscover  bool               `yaml:"autoDiscover" flag:"auto-discover"`
	Token         string             `yaml:"token" flag:"token"`
	Servers       []PlexServerConfig `yaml:"servers"`
}

func Load

func Load(c *cli.Context) (*PlexConfig, error)

type PlexServerConfig

type PlexServerConfig struct {
	BaseURL  string `yaml:"baseUrl"`
	Token    string `yaml:"token"`
	Insecure bool   `yaml:"insecure"`
}

Jump to

Keyboard shortcuts

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