config

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Config{}

Functions

This section is empty.

Types

type Config added in v0.2.0

type Config struct {
	LogLevel string `mapstructure:"log-level"`

	DiscoverInterval time.Duration `mapstructure:"discover-interval"`
	PausedInterval   time.Duration `mapstructure:"paused-interval"`
	PlayingInterval  time.Duration `mapstructure:"playing-interval"`

	NetworkInterface string `mapstructure:"network-interface"`

	Categories []string

	YouTubeAPIKey string `mapstructure:"youtube-api-key"`
	MuteAds       bool   `mapstructure:"mute-ads"`
}

func (*Config) Load added in v0.2.0

func (c *Config) Load() error

func (*Config) RegisterCategories added in v0.2.0

func (c *Config) RegisterCategories(cmd *cobra.Command)

func (*Config) RegisterDiscoverInterval added in v0.2.0

func (c *Config) RegisterDiscoverInterval(cmd *cobra.Command)

func (*Config) RegisterFlags added in v0.2.0

func (c *Config) RegisterFlags(cmd *cobra.Command)

func (*Config) RegisterLogLevel added in v0.2.0

func (c *Config) RegisterLogLevel(cmd *cobra.Command)

func (*Config) RegisterMuteAds added in v0.3.0

func (c *Config) RegisterMuteAds(cmd *cobra.Command)

func (*Config) RegisterNetworkInterface added in v0.2.0

func (c *Config) RegisterNetworkInterface(cmd *cobra.Command)

func (*Config) RegisterPausedInterval added in v0.2.0

func (c *Config) RegisterPausedInterval(cmd *cobra.Command)

func (*Config) RegisterPlayingInterval added in v0.2.0

func (c *Config) RegisterPlayingInterval(cmd *cobra.Command)

func (*Config) RegisterYouTubeAPIKey added in v0.2.0

func (c *Config) RegisterYouTubeAPIKey(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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