Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GreenPassVersion = "1.3.0" SNOMEDCovidCode = "840539006" VaccineProduct = "EU/1/20/1528" VaccineType = "1119349007" // SARS-CoV-2 mRNA vaccine MarketingAuthorisation = "ORG-100030215" // Biontech Manufacturing GmbH )
View Source
var (
API_BASE_URL = "https://get.dgc.gov.it/v1/dgc"
)
Functions ¶
func Generate ¶
Generates Vaccine Passport with json data read from 'dataPath' and returns raw Vaccine Pass string as `HC1:...`
func GenerateQR ¶
Generates Vaccine Passport with json data read from 'dataPath' and writes the Vaccine Pass as a QR code file at 'outputPath'
Types ¶
type Config ¶
type Config struct { Name string `json:"name"` Surname string `json:"surname"` Dob string `json:"dob"` IssuerCountry string `json:"issuerCountry"` Issuer string `json:"issuer"` VaccinationDate string `json:"vaccinationDate"` Doses int `json:"doses"` }
DCC Payload data to be read from file
type DCC ¶
type DCC struct { ExpirationTime int `cbor:"4,keyasint,omitempty" json:"4"` IssuedAt int `cbor:"6,keyasint,omitempty" json:"6"` Issuer string `cbor:"1,keyasint,omitempty" json:"1"` HealthCertificate HCert `cbor:"-260,keyasint,omitempty" json:"-260"` }
DCC (Digital Covid Certificate) Top Level CBOR structure Section 3.3.1 at https://ec.europa.eu/health/sites/default/files/ehealth/docs/digital-green-certificates_v1_en.pdf
type DCCPayload ¶
type HCert ¶
type HCert struct {
DGC DCCPayload `cbor:"1,keyasint,omitempty" json:"1"`
}
type V ¶
type V struct { Dn int `json:"dn"` // Number in a series of doses Sd int `json:"sd"` // The overall number of doses Mp string `json:"mp"` // Vaccine Product Dt string `json:"dt"` // Date of vaccination Tg string `json:"tg"` // Disease or agent targeted Vp string `json:"vp"` // Vaccine or Prophylaxis Ma string `json:"ma"` // Vaccine marketing authorisation holder or manufacturer Co string `json:"co"` // Member state which administered the vaccine Is string `json:"is"` // Certificate Issuer Ci string `json:"ci"` // Unique certificate identifier }
DCC Payload for Vaccination group type of HCERT
Click to show internal directories.
Click to hide internal directories.