reporter

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ReportCache      *cache.Cache
	Cases            cases.Reporter
	Hospitalisations hospitalisations.Reporter
	Mortality        mortality.Reporter
	TestResults      testresults.Reporter
	Vaccinations     vaccinations.Reporter
	Vaccines         vaccines.Reporter
}

Client queries different Reporter APIs

func New

func New(duration time.Duration) *Client

New creates a new Client which caches results for duration interval

func NewWithOptions added in v1.9.6

func NewWithOptions(expiration time.Duration, options httpclient.Options) *Client

NewWithOptions creates a new Client with the provided Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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