arpansagovau

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Stations

type Stations struct {
	XMLName  xml.Name `xml:"stations"`
	Text     string   `xml:",chardata"`
	Location []struct {
		Text        string  `xml:",chardata"`
		ID          string  `xml:"id,attr"`
		Name        string  `xml:"name"`        // adl, ali, bri, can, cas, ...
		Index       float32 `xml:"index"`       // 0.0, 0.0, 0.0, 0.0, 0.0, ...
		Time        string  `xml:"time"`        // 7:24 PM, 7:24 PM, 7:54 PM...
		Date        string  `xml:"date"`        // 29/08/2019, 29/08/2019, 2...
		Fulldate    string  `xml:"fulldate"`    // Thursday, 29 August 2019,...
		Utcdatetime string  `xml:"utcdatetime"` // 2019/08/29 09:54, 2019/08...
		Status      string  `xml:"status"`      // ok, ok, ok, ok, ok, ok, o...
	} `xml:"location"`
}

type Widget

type Widget struct {
	view.TextWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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