Versions in this module Expand all Collapse all v1 v1.1.0 Dec 24, 2019 v1.0.3 Aug 18, 2019 v1.0.2 Aug 7, 2019 Changes in this version + func LoadConfig() (*Config, Options) + func Update(settings []ComponentSettings, options Options) + type ActionsConfig struct + Script *string + Sound *bool + TerminalBell *bool + Visual *bool + type AsciiBoxConfig struct + Border *bool + Font *console.AsciiFont + type BarChartConfig struct + Items []Item + Scale *int + type ComponentConfig struct + Position [][]int + RateMs *int + Title string + Triggers []TriggerConfig + Type ComponentType + func (c *ComponentConfig) GetLocation() Location + func (c *ComponentConfig) GetRectangle() image.Rectangle + func (c *ComponentConfig) GetSize() Size + type ComponentSettings struct + Location Location + Size Size + Title string + Type ComponentType + type ComponentType rune + const TypeAsciiBox + const TypeBarChart + const TypeGauge + const TypeRunChart + const TypeSparkLine + const TypeTextBox + type Config struct + AsciiBoxes []AsciiBoxConfig + BarCharts []BarChartConfig + Gauges []GaugeConfig + RunCharts []RunChartConfig + SparkLines []SparkLineConfig + TextBoxes []TextBoxConfig + Theme *console.Theme + Variables map[string]string + type GaugeConfig struct + Color *ui.Color + Cur Item + Max Item + Min Item + PercentOnly *bool + Scale *int + type Item struct + Color *ui.Color + InitScript *string + Label *string + MultiStepInitScript *[]string + Pty *bool + SampleScript *string + TransformScript *string + type LegendConfig struct + Details bool + Enabled bool + type Location struct + X int + Y int + type Options struct + ConfigFile *string + DisableTelemetry bool + Environment []string + LicenseKey *string + Version bool + type RunChartConfig struct + Items []Item + Legend *LegendConfig + Scale *int + type Size struct + X int + Y int + type SparkLineConfig struct + Gradient *[]ui.Color + Item Item + Scale *int + type TextBoxConfig struct + Border *bool + type TriggerConfig struct + Actions *ActionsConfig + Condition string + Title string