adapter

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCovid19Adapter

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

BaseCovid19Adapter represent BaseCovid19Adapter

func (*BaseCovid19Adapter) GetInfo

GetInfo set Info

func (*BaseCovid19Adapter) SetInfo

func (b *BaseCovid19Adapter) SetInfo(info Covid19AdapterInfo)

SetInfo set Info

type Covid19AdapterInfo

type Covid19AdapterInfo 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"`
}

Covid19AdapterInfo represent Covid19AdapterInfo

type ICovid19Adapter

type ICovid19Adapter interface {
	DisplayCurrentDataByCountry(req *domSchema.DisplayCurrentDataByCountryRequest) (*domSchema.TotalCountryProviderData, error)
}

ICovid19Adapter interface

Directories

Path Synopsis
who

Jump to

Keyboard shortcuts

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