widgets

package
v0.1.2-0...-ef2143f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UpdateInterval time.Duration     `json:"updateinterval"`
	Stations       []StationSettings `json:"stations"`
}

Config blabla

type StationSettings

type StationSettings struct {
	ID                string `json:"id"`
	Name              string `json:"name"`
	FilterMode        string `json:"filtername"`
	FilterDestination string `json:"filterdestination"`
	FilterLine        string `json:"filterline"`
	Min               int    `json:"min"`
	Bicycle           bool   `json:"bicycle"`
}

StationSettings contains general configuration for each monitored station e.g ID and filtering settings

type StationWidget

type StationWidget struct {
	*ui.Table
	// contains filtered or unexported fields
}

StationWidget represents a Station and display's it in table form

func NewStationWidget

func NewStationWidget(config *Config) *StationWidget

NewStationWidget constructs a new StationWidget with the given settings

Jump to

Keyboard shortcuts

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