Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleDetail ¶
ArticleDetail is a widget that provides for viewing article details.
func NewArticleDetail ¶
func NewArticleDetail(app *tview.Application, parent tview.Primitive) *ArticleDetail
NewArticleDetail creates a new instance of the ArticleDetail view. Nothing will be displayed until an article is set on this view using Refresh()
func (*ArticleDetail) Refresh ¶
func (a *ArticleDetail) Refresh(article *news.Article)
Refresh updates the content being displayed by this widget.
type Articles ¶
Articles is a widget to display a read-only list of articles with their details available.
func NewArticles ¶
func NewArticles(app *tview.Application, articles []*news.Article) *Articles
NewArticles creates a new instance of this widget with the supplied set of articles for viewing. It should be at least 50 characters wide for best performance.
func (*Articles) SetNextWidget ¶
SetNextWidget controls where the focus is given should this list be left.
type DeviceDetail ¶
DeviceDetail is a widget that provides for viewing and editing DeviceInfo details.
func NewDeviceDetail ¶
func NewDeviceDetail(app *tview.Application, logger *zap.Logger, parent tview.Primitive) *DeviceDetail
NewDeviceDetail creates a new instance of the DeviceDetail view. Nothing will be displayed until a DeviceInfo is set on this view using Refresh()
func (*DeviceDetail) Refresh ¶
func (dd *DeviceDetail) Refresh(client bridge.BridgeServiceClient, device *bridge.Device)
Refresh takes the supplied DeviceInfo and refreshes the view with its contents.
type Devices ¶
Devices is a widget to display an editable list of devices with their details available.
func NewDevices ¶
func NewDevices(app *tview.Application, logger *zap.Logger, client bridge.BridgeServiceClient) *Devices
NewDevices creates a new instance of this widget with the supplied set of devices for management.
func (*Devices) SetNextWidget ¶
SetNextWidget controls where the focus is given should this list be left.
type Time ¶
Time is a widget to display the time for the current location.
type Transit ¶
Transit is a widget that displays the upcoming transit arrival times.
func NewTransit ¶
func NewTransit(app *tview.Application, rowCount int) *Transit
NewTransit creates a new transit widget with the specified number of rows. It will not show any data until Refresh() is called to display the data.
type WeatherCondition ¶
WeatherCondition is a widget to display the current weather conditions. It is a fixed-size widget of width 24.
func NewWeatherCondition ¶
func NewWeatherCondition(app *tview.Application) *WeatherCondition
NewWeatherCondition creates a new weather report widget. Nothing will be displayed until a WeatherConditionInfo is set on this view using Refresh()
func (*WeatherCondition) Refresh ¶
func (wc *WeatherCondition) Refresh(report *weather.WeatherReport)
Refresh takes the supplied information and updates the widget with the supplied values.
type WeatherForecast ¶
WeatherForecast is a widget that displays the upcoming weather forecast.
func NewWeatherForecast ¶
func NewWeatherForecast(app *tview.Application, rowCount int) *WeatherForecast
NewWeatherForecast creates a new WeatherForecast widget with the specified number of rows. It will not show any data until Refresh() is called to display the data.
func (*WeatherForecast) Refresh ¶
func (wf *WeatherForecast) Refresh(forecast *weather.GetForecastResponse)
Refresh causes the forecast data to be updated.