philippines

package
v0.0.0-...-2369477 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HsPUIsAttributes

type HsPUIsAttributes struct {
	Region    string  `json:"region"`
	HF        string  `json:"hf"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
	PUIs      int64   `json:"PUIs"`
	ObjectID  int64   `json:"ObjectId"`
}

HsPUIsAttributes hospital puis data

type Service

type Service interface {
	GetStats() (*StatsAttributes, error)
	GetHospitalPUI() (*[]HsPUIsAttributes, error)
}

Service interface

func NewService

func NewService(h http.Client) Service

NewService create new service

type StatsAttributes

type StatsAttributes struct {
	Day       int64       `json:"day"`
	Confirmed int64       `json:"confirmed"`
	PUIs      interface{} `json:"PUIs"`
	PUMs      interface{} `json:"PUMs"`
	Recovered int64       `json:"recovered"`
	Deaths    int64       `json:"deaths"`
	Tests     interface{} `json:"tests"`
	ObjectID  int64       `json:"ObjectId"`
}

StatsAttributes ph data

Jump to

Keyboard shortcuts

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