config

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 3 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 {
	BindAddr string `fig:"bind_addr" default:""`
	Port     int    `fig:"port" default:"3690"`

	YoutubeDLCommand string `fig:"youtubedl_command" default:"yt-dlp"`

	DataDir string `fig:"data_dir" validate:"required"`

	PlexBaseURL string `fig:"plex_base_url"`
	PlexToken   string `fig:"plex_token"`

	LibraryDir   string `fig:"library_dir" validate:"required"`
	LibraryOwner string `fig:"library_owner"`
}

func Read

func Read(cfgFile string) (cfg Config, err error)

func (Config) YoutubeDLCommandAsSlice

func (cfg Config) YoutubeDLCommandAsSlice() []string

Jump to

Keyboard shortcuts

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