Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseUrl = "https://disease.sh/v3/covid-19" MyCountry = "Germany" // Country that will definitely be shown in the top list TopListPlaces = 10 )
Variables ¶
This section is empty.
Functions ¶
func OnCountry ¶
func OnCountry(c plugin.GobotContext) error
func OnRun ¶
func OnRun(c plugin.GobotContext) error
Types ¶
type Result ¶
type Result struct { Message string `json:"message"` Updated int64 `json:"updated"` Cases int `json:"cases"` TodayCases int `json:"todayCases"` Deaths int `json:"deaths"` TodayDeaths int `json:"todayDeaths"` Recovered int `json:"recovered"` TodayRecovered int `json:"todayRecovered"` Active int `json:"active"` Critical int `json:"critical"` CasesPerOneMillion int `json:"casesPerOneMillion"` Tests int `json:"tests"` TestsPerOneMillion float64 `json:"testsPerOneMillion"` Population int `json:"population"` OneCasePerPeople int `json:"oneCasePerPeople"` OneDeathPerPeople int `json:"oneDeathPerPeople"` OneTestPerPeople int `json:"oneTestPerPeople"` ActivePerOneMillion float64 `json:"activePerOneMillion"` RecoveredPerOneMillion float64 `json:"recoveredPerOneMillion"` CriticalPerOneMillion float64 `json:"criticalPerOneMillion"` }
func (*Result) UpdatedParsed ¶
Click to show internal directories.
Click to hide internal directories.