Documentation ¶
Index ¶
- Constants
- type APICasesResponse
- func (v APICasesResponse) GetAttributeNames() []string
- func (v APICasesResponse) GetAttributeValues() (values []float64)
- func (v APICasesResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
- func (v APICasesResponse) GetTimestamp() time.Time
- func (v APICasesResponse) GetTotalValue() float64
- type APICasesResponses
- type APIHospitalisationsResponse
- func (v APIHospitalisationsResponse) GetAttributeNames() []string
- func (v APIHospitalisationsResponse) GetAttributeValues() (values []float64)
- func (v APIHospitalisationsResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
- func (v APIHospitalisationsResponse) GetTimestamp() time.Time
- func (v APIHospitalisationsResponse) GetTotalValue() float64
- type APIMortalityResponse
- func (v APIMortalityResponse) GetAttributeNames() []string
- func (v APIMortalityResponse) GetAttributeValues() (values []float64)
- func (v APIMortalityResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
- func (v APIMortalityResponse) GetTimestamp() time.Time
- func (v APIMortalityResponse) GetTotalValue() float64
- type APITestResultsResponse
- func (v APITestResultsResponse) GetAttributeNames() []string
- func (v APITestResultsResponse) GetAttributeValues() (values []float64)
- func (v APITestResultsResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
- func (v APITestResultsResponse) GetTimestamp() time.Time
- func (v APITestResultsResponse) GetTotalValue() float64
- type APIVaccinationsResponse
- func (v *APIVaccinationsResponse) GetAttributeNames() []string
- func (v *APIVaccinationsResponse) GetAttributeValues() (values []float64)
- func (v *APIVaccinationsResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
- func (v *APIVaccinationsResponse) GetTimestamp() time.Time
- func (v *APIVaccinationsResponse) GetTotalValue() float64
- type APIVaccinationsResponses
- type Client
- type DoseType
- type TimeStamp
Constants ¶
const ( TypeTestResults = iota TypeVaccinations TypeCases TypeMortality TypeHospitalisations )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APICasesResponse ¶
type APICasesResponse struct { TimeStamp TimeStamp `json:"DATE"` Province string `json:"PROVINCE"` Region string `json:"REGION"` AgeGroup string `json:"AGEGROUP"` Cases int `json:"CASES"` }
APICasesResponse is a single entry in APICasesResponse
func (APICasesResponse) GetAttributeNames ¶ added in v1.8.4
func (v APICasesResponse) GetAttributeNames() []string
GetAttributeNames returns the names of the types of vaccinations
func (APICasesResponse) GetAttributeValues ¶ added in v1.8.4
func (v APICasesResponse) GetAttributeValues() (values []float64)
GetAttributeValues gets the value for each supported type of vaccination
func (APICasesResponse) GetGroupFieldValue ¶ added in v1.8.4
func (v APICasesResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
GetGroupFieldValue returns the value of the specified entry's field
func (APICasesResponse) GetTimestamp ¶ added in v1.8.4
func (v APICasesResponse) GetTimestamp() time.Time
GetTimestamp returns the entry's timestamp
func (APICasesResponse) GetTotalValue ¶ added in v1.8.4
func (v APICasesResponse) GetTotalValue() float64
GetTotalValue returns the entry's total number of vaccinations
type APICasesResponses ¶ added in v1.8.4
type APICasesResponses []*APICasesResponse
APICasesResponses is a slice of APICasesResponses structs
func (APICasesResponses) MarshalEasyJSON ¶ added in v1.8.4
func (v APICasesResponses) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (APICasesResponses) MarshalJSON ¶ added in v1.8.4
func (v APICasesResponses) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*APICasesResponses) UnmarshalEasyJSON ¶ added in v1.8.4
func (v *APICasesResponses) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*APICasesResponses) UnmarshalJSON ¶ added in v1.8.4
func (v *APICasesResponses) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type APIHospitalisationsResponse ¶
type APIHospitalisationsResponse struct { TimeStamp TimeStamp `json:"DATE"` Province string `json:"PROVINCE"` Region string `json:"REGION"` TotalIn int `json:"TOTAL_IN"` TotalInICU int `json:"TOTAL_IN_ICU"` TotalInResp int `json:"TOTAL_IN_RESP"` TotalInECMO int `json:"TOTAL_IN_ECMO"` }
APIHospitalisationsResponse is a single entry in APIHospitalisationsResponse
func (APIHospitalisationsResponse) GetAttributeNames ¶ added in v1.8.4
func (v APIHospitalisationsResponse) GetAttributeNames() []string
GetAttributeNames returns the names of the types of vaccinations
func (APIHospitalisationsResponse) GetAttributeValues ¶ added in v1.8.4
func (v APIHospitalisationsResponse) GetAttributeValues() (values []float64)
GetAttributeValues gets the value for each supported type of vaccination
func (APIHospitalisationsResponse) GetGroupFieldValue ¶ added in v1.8.4
func (v APIHospitalisationsResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
GetGroupFieldValue returns the value of the specified entry's field
func (APIHospitalisationsResponse) GetTimestamp ¶ added in v1.8.4
func (v APIHospitalisationsResponse) GetTimestamp() time.Time
GetTimestamp returns the entry's timestamp
func (APIHospitalisationsResponse) GetTotalValue ¶ added in v1.8.4
func (v APIHospitalisationsResponse) GetTotalValue() float64
GetTotalValue returns the entry's total number of vaccinations
type APIMortalityResponse ¶
type APIMortalityResponse struct { TimeStamp TimeStamp `json:"DATE"` Region string `json:"REGION"` AgeGroup string `json:"AGEGROUP"` Deaths int `json:"DEATHS"` }
APIMortalityResponse is a single entry in APIMortalityResponse
func (APIMortalityResponse) GetAttributeNames ¶ added in v1.8.4
func (v APIMortalityResponse) GetAttributeNames() []string
GetAttributeNames returns the names of the types of vaccinations
func (APIMortalityResponse) GetAttributeValues ¶ added in v1.8.4
func (v APIMortalityResponse) GetAttributeValues() (values []float64)
GetAttributeValues gets the value for each supported type of vaccination
func (APIMortalityResponse) GetGroupFieldValue ¶ added in v1.8.4
func (v APIMortalityResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
GetGroupFieldValue returns the value of the specified entry's field
func (APIMortalityResponse) GetTimestamp ¶ added in v1.8.4
func (v APIMortalityResponse) GetTimestamp() time.Time
GetTimestamp returns the entry's timestamp
func (APIMortalityResponse) GetTotalValue ¶ added in v1.8.4
func (v APIMortalityResponse) GetTotalValue() float64
GetTotalValue returns the entry's total number of vaccinations
type APITestResultsResponse ¶
type APITestResultsResponse struct { TimeStamp TimeStamp `json:"DATE"` Province string `json:"PROVINCE"` Region string `json:"REGION"` Total int `json:"TESTS_ALL"` Positive int `json:"TESTS_ALL_POS"` }
APITestResultsResponse is a single entry in APITestResultsResponse
func (APITestResultsResponse) GetAttributeNames ¶ added in v1.8.4
func (v APITestResultsResponse) GetAttributeNames() []string
GetAttributeNames returns the names of the types of vaccinations
func (APITestResultsResponse) GetAttributeValues ¶ added in v1.8.4
func (v APITestResultsResponse) GetAttributeValues() (values []float64)
GetAttributeValues gets the value for each supported type of vaccination
func (APITestResultsResponse) GetGroupFieldValue ¶ added in v1.8.4
func (v APITestResultsResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
GetGroupFieldValue returns the value of the specified entry's field
func (APITestResultsResponse) GetTimestamp ¶ added in v1.8.4
func (v APITestResultsResponse) GetTimestamp() time.Time
GetTimestamp returns the entry's timestamp
func (APITestResultsResponse) GetTotalValue ¶ added in v1.8.4
func (v APITestResultsResponse) GetTotalValue() float64
GetTotalValue returns the entry's total number of vaccinations
type APIVaccinationsResponse ¶
type APIVaccinationsResponse struct { TimeStamp TimeStamp `json:"DATE"` Manufacturer string `json:"BRAND"` Region string `json:"REGION"` AgeGroup string `json:"AGEGROUP"` Gender string `json:"SEX"` Dose DoseType `json:"DOSE"` Count int `json:"COUNT"` }
APIVaccinationsResponse is a single entry in APIVaccinationResponse
func (*APIVaccinationsResponse) GetAttributeNames ¶ added in v1.8.4
func (v *APIVaccinationsResponse) GetAttributeNames() []string
GetAttributeNames returns the names of the types of vaccinations
func (*APIVaccinationsResponse) GetAttributeValues ¶ added in v1.8.4
func (v *APIVaccinationsResponse) GetAttributeValues() (values []float64)
GetAttributeValues gets the value for each supported type of vaccination
func (*APIVaccinationsResponse) GetGroupFieldValue ¶ added in v1.8.4
func (v *APIVaccinationsResponse) GetGroupFieldValue(groupField apiclient.GroupField) (value string)
GetGroupFieldValue returns the value of the specified entry's field
func (*APIVaccinationsResponse) GetTimestamp ¶ added in v1.8.4
func (v *APIVaccinationsResponse) GetTimestamp() time.Time
GetTimestamp returns the entry's timestamp
func (*APIVaccinationsResponse) GetTotalValue ¶ added in v1.8.4
func (v *APIVaccinationsResponse) GetTotalValue() float64
GetTotalValue returns the entry's total number of vaccinations
type APIVaccinationsResponses ¶ added in v1.8.4
type APIVaccinationsResponses []*APIVaccinationsResponse
APIVaccinationsResponses is a slice of APIVaccinationResponse structures
func (APIVaccinationsResponses) MarshalEasyJSON ¶ added in v1.8.4
func (v APIVaccinationsResponses) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (APIVaccinationsResponses) MarshalJSON ¶ added in v1.8.4
func (v APIVaccinationsResponses) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*APIVaccinationsResponses) UnmarshalEasyJSON ¶ added in v1.8.4
func (v *APIVaccinationsResponses) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*APIVaccinationsResponses) UnmarshalJSON ¶ added in v1.8.4
func (v *APIVaccinationsResponses) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DoseType ¶ added in v1.11.0
type DoseType int
DoseType is the type of vaccination: first, full, singledose, booster, etc.
func (*DoseType) MarshalJSON ¶ added in v1.11.0
func (*DoseType) UnmarshalJSON ¶ added in v1.11.0
type TimeStamp ¶
TimeStamp represents a timestamp in the API responder. Needed for parsing purposes
func (TimeStamp) MarshalJSON ¶ added in v1.10.0
MarshalJSON marshalls a TimeStamp to JSON
func (*TimeStamp) UnmarshalJSON ¶
UnmarshalJSON unmarshalls a TimeStamp from the API responder.