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: 9 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
	// 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) GetData

func (c *Covid19) GetData() (*c19type.DataResponse, error)

GetData get Data.json

func (*Covid19) GetProv

func (c *Covid19) GetProv() (*c19type.ProvResponse, error)

GetProv get Prov.json

func (*Covid19) GetUpdate

func (c *Covid19) GetUpdate() (*c19type.UpdateResponse, error)

GetUpdate get Update.json

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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