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 ¶
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
Click to show internal directories.
Click to hide internal directories.