Documentation
¶
Index ¶
Constants ¶
View Source
const EnvPrefix = "CSS_"
Variables ¶
View Source
var ErrInvalidIP = errors.New("failed to parse IP")
Functions ¶
func LogFormatStrings ¶
func LogFormatStrings() []string
LogFormatStrings returns a slice of all String values of the enum
func RegisterCompletions ¶
func RegisterFlags ¶
Types ¶
type Config ¶
type Config struct {
LogLevel string `yaml:"log-level"`
LogFormat string `yaml:"log-format"`
DeviceAddrStrs []string `yaml:"devices"`
DeviceAddrs []castdns.CastEntry `yaml:"-"`
DiscoverInterval time.Duration `yaml:"discover-interval"`
PausedInterval time.Duration `yaml:"paused-interval"`
PlayingInterval time.Duration `yaml:"playing-interval"`
SkipDelay time.Duration `yaml:"skip-delay"`
IgnoreSegmentDuration time.Duration `yaml:"ignore-segment-duration"`
NetworkInterfaceName string `yaml:"network-interface"`
NetworkInterface *net.Interface `yaml:"-"`
SkipSponsors bool `yaml:"skip-sponsors"`
Categories []string `yaml:"categories"`
ActionTypes []string `yaml:"action-types"`
YouTubeAPIKey string `yaml:"youtube-api-key"`
MuteAds bool `yaml:"mute-ads"`
}
func FromContext ¶
type LogFormat ¶
type LogFormat uint8
func LogFormatString ¶
LogFormatString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func LogFormatValues ¶
func LogFormatValues() []LogFormat
LogFormatValues returns all values of the enum
func (LogFormat) IsALogFormat ¶
IsALogFormat returns "true" if the value is listed in the enum definition. "false" otherwise
func (LogFormat) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for LogFormat
func (*LogFormat) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for LogFormat
Source Files
¶
Click to show internal directories.
Click to hide internal directories.