apiclient

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse added in v1.8.4

type APIResponse interface {
	GetTimestamp() time.Time
	GetGroupFieldValue(groupField GroupField) (value string)
	GetTotalValue() float64
	GetAttributeNames() []string
	GetAttributeValues() []float64
}

APIResponse is the interface that each apiclient response needs to adhere to. These allow datasets to process API responses in a generic way

type GroupField added in v1.12.0

type GroupField int
const (
	// GroupByAgeGroup is used by GetGroupFieldName. This groups all data by Age Group.
	GroupByAgeGroup GroupField = iota
	// GroupByRegion is used by GetGroupFieldName. This groups all data by Region
	GroupByRegion
	// GroupByProvince is used by GetGroupFieldName. This groups all data by Province
	GroupByProvince
	// GroupByManufacturer is used by GetGroupFieldName. This groups all vaccines by manufacturer
	GroupByManufacturer
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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