vaccinations

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

Documentation

Index

Constants

View Source
const (
	// TypeAll tells getByType not to filter by type of vaccination
	TypeAll = iota
	// TypePartial filters partial vaccinations
	TypePartial
	// TypeFull filters full vaccinations. It counts 2nd vaccinations and single dose vaccinations
	TypeFull
	// TypeBooster filters booster vaccinations
	TypeBooster
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	ReportCache *reportCache.Cache
	APIClient   fetcher.Fetcher
}

func (*Reporter) Get

func (r *Reporter) Get() (results *data.Table, err error)

Get returns all vaccinations

func (*Reporter) GetByAgeGroup

func (r *Reporter) GetByAgeGroup(vaccinationType int) (results *data.Table, err error)

GetByAgeGroup returns all vaccinations, grouped by age group

func (*Reporter) GetByManufacturer

func (r *Reporter) GetByManufacturer() (results *data.Table, err error)

GetByManufacturer returns all vaccinations, grouped by manufacturer

func (*Reporter) GetByRegion

func (r *Reporter) GetByRegion(vaccinationType int) (results *data.Table, err error)

GetByRegion returns all vaccinations, grouped by region

Jump to

Keyboard shortcuts

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