Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseInfo ¶
type BaseInfo struct {
BaseURL string `yaml:"base_url"`
Support string `yaml:"support"`
Contact string `yaml:"contact"`
Title string `yaml:"title"`
TimeZone string `yaml:"time_zone"`
}
func (*BaseInfo) UnmarshalYAML ¶
type Components ¶
type Components []Component
func (Components) Inline ¶
func (cs Components) Inline() []string
func (Components) Regroups ¶
func (cs Components) Regroups() map[string][]Component
type Config ¶
type Config struct {
Targets []target `yaml:"targets"`
Listen string `yaml:"listen"`
Log Log `yaml:"log"`
Components Components `yaml:"components"`
BaseInfo *BaseInfo `yaml:"base_info"`
Username string `yaml:"username"`
Password string `yaml:"password"`
CookieKey string `yaml:"cookie_key"`
Notifiers []Notifier `yaml:"notifiers"`
Theme *Theme `yaml:"theme"`
}
func LoadConfig ¶
func (*Config) UnmarshalYAML ¶
type ForComponent ¶
type ForComponent struct {
RequireAll bool `yaml:"require_all"`
GroupMatch []string `yaml:"groups"`
NameMatch []string `yaml:"names"`
}
func (ForComponent) MatchComponent ¶
func (lm ForComponent) MatchComponent(component models.Component) bool
func (ForComponent) MatchComponents ¶
func (lm ForComponent) MatchComponents(components models.Components) bool
type Log ¶
type Log struct {
Level string `yaml:"level"`
NoColor bool `yaml:"no_color"`
InJson bool `yaml:"in_json"`
}
func (*Log) UnmarshalYAML ¶
type Notifier ¶
type Notifier struct {
For ForComponent `yaml:"for"`
Type string `yaml:"type"`
Params map[string]interface{} `yaml:"params"`
}
type Theme ¶
type Theme struct {
PreStatus string `yaml:"pre_status"`
PostStatus string `yaml:"post_status"`
PreTimeline string `yaml:"pre_timeline"`
PostTimeline string `yaml:"post_timeline"`
PreMaintenance string `yaml:"pre_maintenance"`
PostMaintenance string `yaml:"post_maintenance"`
PersistentDisplayName string `yaml:"persistent_display_name"`
PrePersistent string `yaml:"pre_persistent"`
PostPersistent string `yaml:"post_persistent"`
}
Click to show internal directories.
Click to hide internal directories.