Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Directory string Path string )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Player string `default:"spotify" yaml:"player"`
IgnoreErrors bool `default:"true" yaml:"ignoreErrors"`
TimerInterval int `default:"200" yaml:"timerInterval"`
UpdateInterval int `default:"2000" yaml:"updateInterval"`
Style struct {
HAlignment string `default:"center" yaml:"hAlignment"`
Before Style `default:"{\"bold\": true}" yaml:"before"`
Current Style `default:"{\"bold\": true}" yaml:"current"`
After Style `default:"{\"faint\": true}" yaml:"after"`
} `yaml:"style"`
Pipe struct {
Length int `yaml:"length"`
Overflow string `default:"word" yaml:"overflow"`
} `yaml:"pipe"`
Mpd struct {
Address string `default:"127.0.0.1:6600" yaml:"address"`
Password string `yaml:"password"`
} `yaml:"mpd"`
Mopidy struct {
Address string `default:"127.0.0.1:6680" yaml:"address"`
} `yaml:"mopidy"`
Mpris struct {
Players []string `default:"[]" yaml:"players"`
} `yaml:"mpris"`
Browser struct {
Port int `default:"8974" yaml:"port"`
} `yaml:"browser"`
Local struct {
Folder string `yaml:"folder"`
} `yaml:"local"`
}
func (*Config) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.