Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrKeyNotFound represent key is not found when searching in KeyValueService ErrKeyNotFound = errors.New("Key not found") )
Functions ¶
This section is empty.
Types ¶
type CityLevelCases ¶
type InfectedDetails ¶
type KeyValueService ¶
type KeyValueService interface {
Set(key string, value []byte) error
SetEx(key string, value []byte, expirationInSeconds time.Duration) error
Get(key string) ([]byte, error)
GetHashAll(key string) (map[string]string, error)
SetHashAll(key string, value map[string]interface{}) error
Delete(key string) error
}
KeyValueService provide an interface to get key
type MonitoringDetails ¶
type NationalLevelCases ¶
type NationalLevelCases struct {
InfectedCases InfectedDetails `json:"positif"` // Positif COVID-19
}
type ProvinceHospitalReferences ¶
type ProvinceHospitalReferences struct {
Hospitals []Hospital
}
type ProvincialLevelCases ¶
type ProvincialLevelCases struct {
MonitoringCases MonitoringDetails `json:"odp"` // ODP
SurveillanceCases SurveillanceDetails `json:"pdp"` // PDP
InfectedCases InfectedDetails `json:"positif"` // Positif COVID-19
LastUpdatedAt time.Time `json:"last_updated_at"`
LastFetchedAt time.Time `json:"last_fetched_at"`
}
type SurveillanceDetails ¶
Click to show internal directories.
Click to hide internal directories.