Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountryInfo ¶
type CountryInfo struct { Code string `json:"code"` Name string `json:"name"` ISO2Code string `json:"ISO2Code"` ISO3Code string `json:"ISO3Code"` WHORegion string `json:"WHORegion"` }
CountryInfo represent Country Information
type DayData ¶
type DayData struct { Death int64 `json:"death"` Confirmed int64 `json:"confirmed"` CumulativeDeath int64 `json:"cumulativeDeath"` CumulativeConfirmed int64 `json:"cumulativeConfirmed"` }
DayData represent Day Data
type DisplayCurrentDataByCountryRequest ¶
type DisplayCurrentDataByCountryRequest struct { CountryCode string `json:"countryCode"` Providers []*Provider `json:"providers"` }
DisplayCurrentDataByCountryRequest represent DisplayCurrentDataByCountryRequest
func (*DisplayCurrentDataByCountryRequest) ToJSON ¶ added in v0.2.1
func (r *DisplayCurrentDataByCountryRequest) ToJSON() []byte
ToJSON covert to JSON
func (*DisplayCurrentDataByCountryRequest) Validate ¶
func (s *DisplayCurrentDataByCountryRequest) Validate() error
Validate is a validation method for DisplayCurrentDataByCountryRequest
type DisplayCurrentDataByCountryResponse ¶
type DisplayCurrentDataByCountryResponse struct { Query interface{} `json:"query"` Data *TotalCountryProviderDataList `json:"data"` }
DisplayCurrentDataByCountryResponse represent DisplayCurrentDataByCountryResponse
func (*DisplayCurrentDataByCountryResponse) ToJSON ¶
func (r *DisplayCurrentDataByCountryResponse) ToJSON() []byte
ToJSON covert to JSON
type TotalCountryData ¶
type TotalCountryData struct { CountryInfo *CountryInfo `json:"countryInfo"` StartDate string `json:"startDate"` LastUpdate string `json:"lastUpdate"` TodayData *DayData `json:"today"` YesterdayData *DayData `json:"yesterday"` TotalData *TotalData `json:"total"` }
TotalCountryData represent Total Country Data
type TotalCountryProviderData ¶
type TotalCountryProviderData struct { Provider string `json:"provider"` Information string `json:"information"` Data *TotalCountryData `json:"data"` }
TotalCountryProviderData represent TotalCountryProviderData
type TotalCountryProviderDataList ¶
type TotalCountryProviderDataList []*TotalCountryProviderData
TotalCountryProviderDataList represent TotalCountryProviderDataList
Click to show internal directories.
Click to hide internal directories.