vax

package
v0.0.0-...-f119367 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Area = map[string]string{
	"Abruzzo":               "ABR",
	"Basilicata":            "BAS",
	"Calabria":              "CAL",
	"Campania":              "CAM",
	"Emilia-Romagna":        "EMR",
	"Friuli Venezia Giulia": "FVG",
	"Lazio":                 "LAZ",
	"Liguria":               "LIG",
	"Lombardia":             "LOM",
	"Marche":                "MAR",
	"Molise":                "MOL",
	"P.A. Bolzano":          "PAB",
	"P.A. Trento":           "PAT",
	"Piemonte":              "PIE",
	"Puglia":                "PUG",
	"Sardegna":              "SAR",
	"Sicilia":               "SIC",
	"Toscana":               "TOS",
	"Umbria":                "UMB",
	"Valle d'Aosta":         "VDA",
	"Veneto":                "VEN",
}

Functions

func GetAndamentoMsg

func GetAndamentoMsg() string

func GetRegioneMsg

func GetRegioneMsg(regName string) string

func Update

func Update()

Types

type LastUpdate

type LastUpdate struct {
	Timestamp string `json:"ultimo_aggiornamento"`
}

type Somministrazioni

type Somministrazioni struct {
	DataSomministrazione string `json:"data"`
	Fornitore            string `json:"forn"`
	PrimaDose            int    `json:"d1"`
	SecondaDose          int    `json:"d2"`
}

type Vaccini

type Vaccini struct {
	Area              string  `json:"area"`
	DosiConsegnate    int     `json:"dosi_consegnate"`
	DosiSomministrate int     `json:"dosi_somministrate"`
	Percentuale       float32 `json:"percentuale_somministrazione"`
}

Jump to

Keyboard shortcuts

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