covid19goid

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Code   string `yaml:"code" json:"code"`
	Name   string `yaml:"name" json:"name"`
	Server string `yaml:"server" json:"server"`
	Enable bool   `yaml:"enable" json:"enable"`
}

Config represent Config

type Covid19

type Covid19 struct {
	Server string

	CountryGeometry c19data.CountryGeometry
	// contains filtered or unexported fields
}

Covid19 Client SDK

func NewCovid19

func NewCovid19(config Config, httpClient *http.Client) *Covid19

NewCovid19 new Covid19 Client SDK

func (*Covid19) GetCountry

GetCountry get GetCountry.json

func (*Covid19) GetCountryByRegion

func (c *Covid19) GetCountryByRegion(whoRegion string, countryCode string) (*c19type.GetCountryResponse, error)

GetCountryByRegion get GetCountryByRegion

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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