Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToRenderView ¶
func ToRenderView(json EuJsonPayload, qrSource string, lang string) template.RenderView
Types ¶
type EuJsonPayload ¶
type EuJsonPayload struct { //Dob Date of birth Dob string `json:"dob"` Nam struct { //Fn Surname(s) Fn string `json:"fn"` //Fnt Standardised surname(s) Fnt string `json:"fnt"` //Gn Forename(s) Gn string `json:"gn"` //Gnt Standardised forename(s) Gnt string `json:"gnt"` } `json:"nam"` //V: Vaccination group - T (test group) and R (recovery group) are NOT covered V []struct { // Unique certificate identifier Ci string `json:"ci"` //Co Member State or third country in which the vaccine was administered Co string `json:"co"` //Number in a series of doses Dn int `json:"dn"` //Date of vaccination Dt string `json:"dt"` //Is Certificate issuer Is string `json:"is"` //Ma COVID-19 vaccine marketing authorisation holder or manufacturer - vaccine-mah-manf.json. Ma string `json:"ma"` //COVID-19 vaccine product - vaccine-medicinal-product.json. Mp string `json:"mp"` //Sd The overall number of doses in the series (1, 2, 3= Booster) Sd int `json:"sd"` //Tg Disease or agent targeted: COVID-19 (SARS-CoV or one of its variants) - disease-agent-targeted.json Tg string `json:"tg"` //Vp COVID-19 vaccine or prophylaxis - vaccine-prophylaxis.json. Vp string `json:"vp"` } `json:"v"` //Ver Schema version - MUST match the identifier of the schema version used for producing the EUDCC. Example "ver": "1.3.0" Ver string `json:"ver"` }
valuesets taken from https://github.com/admin-ch/CovidCertificate-Examples/tree/main/valuesets
type EuValueSet ¶
type EuValueSet struct { ValueSetDate string `json:"valueSetDate"` ValueSetID string `json:"valueSetId"` ValueSetValues map[string]EuValueSetItem `json:"valueSetValues"` }
Click to show internal directories.
Click to hide internal directories.