config

package
v1.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 3 Imported by: 0

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

type REConfig map[string][]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL