covid19

package module
v0.0.0-...-987863c Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 3 Imported by: 0

README

covid19

Covid19 is an a public API that collect data about coronavirus at Peru

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI() (*API, error)

func (*API) Run

func (api *API) Run(port int64) error

type CoronaStats

type CoronaStats struct {
	From      time.Time `json:"from"`
	To        time.Time `json:"to"`
	Confirmed int64     `json:"confirmed"`
	Recovered int64     `json:"recovered"`
	Deaths    int64     `json:"deaths"`
}

type News

type News struct {
	ID     string    `json:"id"`
	Date   time.Time `json:"date"`
	Title  string    `json:"title"`
	Body   string    `json:"body"`
	Media  []string  `json:"media"`
	Source string    `json:"source"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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