Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(t Configuration) error
Types ¶
type Configuration ¶
type Configuration struct { Syntax string `yaml:"syntax"validate:"required,syntax"` Tabs []Tab `yaml:"tabs,omitempty"validate:"omitempty,dive"` Jobs []Job `yaml:"jobs,omitempty"validate:"omitempty,dive"` }
func Load ¶
func Load(filename string) (Configuration, error)
type Options ¶
type Options struct { // Command Command string `yaml:"command"` Args []string `yaml:"args"` // Tab, Message Duration uint64 `yaml:"duration"` // Tab URL string `yaml:"url"` // Message Message string `yaml:"message"` FontSize uint64 `yaml:"fontSize"` TextColor string `yaml:"textColor"` BackgroundColor string `yaml:"backgroundColor"` Blink bool `yaml:"blink"` }
type Tab ¶
type Tab struct { URL string `yaml:"url"validate:"required"` Duration uint64 `yaml:"duration,omitempty"` Reload bool `yaml:"reload,omitempty"` Auth Auth `yaml:"auth,omitempty"validate:"omitempty,dive"` CSS string `yaml:"css,omitempty"validate:"omitempty,file"` JS string `yaml:"js,omitempty"validate:"omitempty,file"` }
Click to show internal directories.
Click to hide internal directories.