Documentation ¶
Index ¶
- type BasicError
- type Handler
- func (h Handler) FindCountry(c echo.Context) error
- func (h Handler) FindCountryHistories(c echo.Context) error
- func (h Handler) FindStates(c echo.Context) error
- func (h Handler) GetCountriesData(c echo.Context) error
- func (h Handler) GetHistories(c echo.Context) error
- func (h Handler) GetPHHospitalPUIs(c echo.Context) error
- func (h Handler) GetPHStats(c echo.Context) error
- func (h Handler) GetStatesData(c echo.Context) error
- func (h Handler) UpdateData(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler
func (Handler) FindCountry ¶
FindCountry godoc @Tags Worldometer @Summary Find Country @Description find covid19 related data by country @Produce json @Param country path string true "country name / code (philippines/ph/608/phl)" @Success 200 {object} worldometer.CountryStats @Failure 404 {object} BasicError @Router /countries/{country} [get]
func (Handler) FindCountryHistories ¶
FindCountryHistories @Tags World Health Organization (WHO) @Summary Find Country Histories @Description find covid19 related historical data by country @Produce json @Param country path string true "country name / code (philippines/ph/608/phl)" @Success 200 {object} who.HistoryData @Failure 404 {object} BasicError @Router /histories/{country} [get]
func (Handler) FindStates ¶
FindStates godoc @Tags Worldometer @Summary Find State @Description find covid19 related data by state @Produce json @Param state path string true "State Name / State Abbreviation" @Success 200 {object} worldometer.StatesStats @Failure 404 {object} BasicError @Router /states/{state} [get]
func (Handler) GetCountriesData ¶
GetCountriesData get all countries @Tags Worldometer @Summary Get all countries data @Description get current covid data @Produce json @Success 200 {array} worldometer.CountryStats @Router /countries [get]
func (Handler) GetHistories ¶
GetHistories @Tags World Health Organization (WHO) @Summary Get all countries historical data @Description get histories @Produce json @Success 200 {array} who.HistoryData @Router /histories [get]
func (Handler) GetPHHospitalPUIs ¶
GetPHHospitalPUIs godoc @Tags Unavailable @Summary GET DOH PHILIPPINES DATA (HOSPITAL PUIs) @Description get doh philippines official data (HOSPITAL PUIs) from https://ncovtracker.doh.gov.ph/ @Produce json @Success 200 {array} philippines.HsPUIsAttributes @Router /doh/ph/hospital-pui [get]
func (Handler) GetPHStats ¶
GetPHStats godoc @Tags Unavailable @Summary GET DOH PHILIPPINES DATA @Description get doh philippines official data from https://ncovtracker.doh.gov.ph/ @Produce json @Success 200 {array} philippines.StatsAttributes @Router /doh/ph [get]
func (Handler) GetStatesData ¶
GetStatesData godoc @Tags Worldometer @Summary Get all US-States data @Description get current US-States covid data @Produce json @Success 200 {array} worldometer.StatesStats @Router /states [get]