Documentation ¶
Index ¶
Constants ¶
View Source
const EnvPrefix = "CSS_"
Variables ¶
View Source
var ErrInvalidIP = errors.New("failed to parse IP")
Functions ¶
func LogFormatStrings ¶ added in v0.8.0
func LogFormatStrings() []string
LogFormatStrings returns a slice of all String values of the enum
func NewContext ¶ added in v0.8.0
func RegisterCompletions ¶ added in v0.8.0
func RegisterFlags ¶ added in v0.8.0
Types ¶
type Config ¶ added in v0.2.0
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 ¶ added in v0.8.0
type LogFormat ¶ added in v0.8.0
type LogFormat uint8
func LogFormatString ¶ added in v0.8.0
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 ¶ added in v0.8.0
func LogFormatValues() []LogFormat
LogFormatValues returns all values of the enum
func (LogFormat) IsALogFormat ¶ added in v0.8.0
IsALogFormat returns "true" if the value is listed in the enum definition. "false" otherwise
func (LogFormat) MarshalText ¶ added in v0.8.0
MarshalText implements the encoding.TextMarshaler interface for LogFormat
func (*LogFormat) UnmarshalText ¶ added in v0.8.0
UnmarshalText implements the encoding.TextUnmarshaler interface for LogFormat
Source Files ¶
Click to show internal directories.
Click to hide internal directories.