controllers

package
v0.0.0-...-3145de7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll(c *gin.Context)

@Summary GetAll @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /statistic/latest [get]

func GetCountryList

func GetCountryList(c *gin.Context)

func GetDataCsvToJSON

func GetDataCsvToJSON(url string) ([][]string, error)

func GetQuestionSymptoms

func GetQuestionSymptoms(c *gin.Context)

func GetStatistic

func GetStatistic(c *gin.Context)

func SearchData

func SearchData(c *gin.Context)

@Summary Search Data COVID-19 @Param q query string false "name search by q" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /statistic/search [get]

Types

type Report

type Report struct {
	Province   string `json:"province"`
	Country    string `json:"country"`
	LastUpdate string `json:"last_update"`
	Confirmed  string `json:"confirmed"`
	Deaths     int    `json:"death"`
	Recovered  int    `json:"recovered"`
}

type SearchType

type SearchType struct {
	Datetime string `form:"datetime" json:"datetime"`
	City     string `form:"city" json:"city"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL