Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cases ¶
type Cases struct {
Latest Latest `json:"latest"`
}
Cases holds the latest cases
func LatestCases ¶
LatestCases queries the /latest endpoint, does not take any query parameters
type Latest ¶
type Latest struct {
Confirmed int `json:"confirmed"`
Deaths int `json:"deaths"`
// Not currently used but holds information about the country
Locations []interface{} `json:"locations,omitempty"`
}
Latest holds the number of global confirmed cases and deaths due to Covid
type Widget ¶
type Widget struct {
view.TextWidget
// contains filtered or unexported fields
}
Widget is the struct that defines this module widget
func NewWidget ¶
func NewWidget(app *tview.Application, redrawChan chan bool, settings *Settings) *Widget
NewWidget creates a new widget for this module
func (*Widget) LatestCountryCases ¶
LatestCountryCases queries the /locations endpoint, takes a query parameter: the country code
Click to show internal directories.
Click to hide internal directories.