Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaddyConfig ¶
type CaddyConfig struct { Bracket string `yaml:"bracket"` Host string `yaml:"host"` StatusOK string `yaml:"status_ok"` StatusError string `yaml:"status_error"` StatusOther string `yaml:"status_other"` URL string `yaml:"url"` }
struct ColorConfig is the caddy-specific color struct for the caddy formatter.
type MuxytailConf ¶
type MuxytailConf struct { Files []string `yaml:"files"` Colorize REConfig `yaml:"colorize"` Separator SeparatorConfig `yaml:"separator"` Caddy CaddyConfig `yaml:"caddy"` }
MuxytailConf is the root data structure holding configuration.
func Load ¶
func Load(path string) *MuxytailConf
Load reads the config file and parses the YAML into a MuxytailConf.
type REConfig ¶
struct REConfig is a table of color strings that map to a slice of regexps. The matches of each regexps get colorized according to the string key.
type SeparatorConfig ¶
type SeparatorConfig struct {
Color string `yaml:"color"`
}
struct SeparatorConfig is the separator-specific configuration.
Click to show internal directories.
Click to hide internal directories.