Documentation ¶
Index ¶
- Variables
- type BatchDownloadParams
- type BatchImportParams
- type CertificateRequest
- type CertificateResponse
- type DiagnosisKey
- func (*DiagnosisKey) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnosisKey) GetDaysSinceOnsetOfSymptoms() int32
- func (x *DiagnosisKey) GetKeyData() []byte
- func (x *DiagnosisKey) GetOrigin() string
- func (x *DiagnosisKey) GetReportType() ReportType
- func (x *DiagnosisKey) GetRollingPeriod() uint32
- func (x *DiagnosisKey) GetRollingStartIntervalNumber() uint32
- func (x *DiagnosisKey) GetTransmissionRiskLevel() int32
- func (x *DiagnosisKey) GetVisitedCountries() []string
- func (*DiagnosisKey) ProtoMessage()
- func (x *DiagnosisKey) ProtoReflect() protoreflect.Message
- func (x *DiagnosisKey) Reset()
- func (x *DiagnosisKey) String() string
- func (key *DiagnosisKey) ToExposureKey() keyserverapi.ExposureKey
- func (key *DiagnosisKey) ToWrapper() *DiagnosisKeyWrapper
- type DiagnosisKeyBatch
- func (*DiagnosisKeyBatch) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnosisKeyBatch) GetKeys() []*DiagnosisKey
- func (*DiagnosisKeyBatch) ProtoMessage()
- func (x *DiagnosisKeyBatch) ProtoReflect() protoreflect.Message
- func (x *DiagnosisKeyBatch) Reset()
- func (x *DiagnosisKeyBatch) String() string
- type DiagnosisKeyWrapper
- type DownloadBatchResponse
- type ExpKey
- type ExpKeyBatch
- type IssueCodeRequest
- type IssueCodeResponse
- type ReportType
- func (ReportType) Descriptor() protoreflect.EnumDescriptor
- func (x ReportType) Enum() *ReportType
- func (ReportType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReportType) Number() protoreflect.EnumNumber
- func (x ReportType) String() string
- func (ReportType) Type() protoreflect.EnumType
- func (s *ReportType) UnmarshalJSON(data []byte) error
- type UploadBatchResponse
- type VerifyRequest
- type VerifyResponse
Constants ¶
This section is empty.
Variables ¶
var ( ReportType_name = map[int32]string{ 0: "UNKNOWN", 1: "CONFIRMED_TEST", 2: "CONFIRMED_CLINICAL_DIAGNOSIS", 3: "SELF_REPORT", 4: "RECURSIVE", 5: "REVOKED", } ReportType_value = map[string]int32{ "UNKNOWN": 0, "CONFIRMED_TEST": 1, "CONFIRMED_CLINICAL_DIAGNOSIS": 2, "SELF_REPORT": 3, "RECURSIVE": 4, "REVOKED": 5, } )
Enum value maps for ReportType.
var File_efgs_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BatchDownloadParams ¶
type BatchDownloadParams struct { Date string `json:"date" validate:"required"` BatchTag string `json:"batchTag"` }
BatchDownloadParams Struct holding download input data.
type BatchImportParams ¶
type BatchImportParams struct { HAID string `json:"haid"` Keys ExpKeyBatch `json:"keys"` }
BatchImportParams Struct for transferring downloaded keys
type CertificateRequest ¶
type CertificateRequest = verifserverapi.VerificationCertificateRequest
CertificateRequest Certificate request to the Verification server
type CertificateResponse ¶
type CertificateResponse = verifserverapi.VerificationCertificateResponse
CertificateResponse Certificate response to the Verification server
type DiagnosisKey ¶
type DiagnosisKey struct { KeyData []byte `protobuf:"bytes,1,opt,name=keyData,proto3" json:"keyData,omitempty"` // key RollingStartIntervalNumber uint32 `protobuf:"varint,2,opt,name=rollingStartIntervalNumber,proto3" json:"rollingStartIntervalNumber,omitempty"` RollingPeriod uint32 `protobuf:"varint,3,opt,name=rollingPeriod,proto3" json:"rollingPeriod,omitempty"` // number of 10-minute windows between key-rolling TransmissionRiskLevel int32 `protobuf:"varint,4,opt,name=transmissionRiskLevel,proto3" json:"transmissionRiskLevel,omitempty"` // risk of transmission VisitedCountries []string `protobuf:"bytes,5,rep,name=visitedCountries,proto3" json:"visitedCountries,omitempty"` Origin string `protobuf:"bytes,6,opt,name=origin,proto3" json:"origin,omitempty"` // country of origin ReportType ReportType `protobuf:"varint,7,opt,name=reportType,proto3,enum=ReportType" json:"reportType,omitempty"` // set by backend DaysSinceOnsetOfSymptoms int32 `` /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DiagnosisKey) Descriptor
deprecated
func (*DiagnosisKey) Descriptor() ([]byte, []int)
Deprecated: Use DiagnosisKey.ProtoReflect.Descriptor instead.
func (*DiagnosisKey) GetDaysSinceOnsetOfSymptoms ¶
func (x *DiagnosisKey) GetDaysSinceOnsetOfSymptoms() int32
func (*DiagnosisKey) GetKeyData ¶
func (x *DiagnosisKey) GetKeyData() []byte
func (*DiagnosisKey) GetOrigin ¶
func (x *DiagnosisKey) GetOrigin() string
func (*DiagnosisKey) GetReportType ¶
func (x *DiagnosisKey) GetReportType() ReportType
func (*DiagnosisKey) GetRollingPeriod ¶
func (x *DiagnosisKey) GetRollingPeriod() uint32
func (*DiagnosisKey) GetRollingStartIntervalNumber ¶
func (x *DiagnosisKey) GetRollingStartIntervalNumber() uint32
func (*DiagnosisKey) GetTransmissionRiskLevel ¶
func (x *DiagnosisKey) GetTransmissionRiskLevel() int32
func (*DiagnosisKey) GetVisitedCountries ¶
func (x *DiagnosisKey) GetVisitedCountries() []string
func (*DiagnosisKey) ProtoMessage ¶
func (*DiagnosisKey) ProtoMessage()
func (*DiagnosisKey) ProtoReflect ¶
func (x *DiagnosisKey) ProtoReflect() protoreflect.Message
func (*DiagnosisKey) Reset ¶
func (x *DiagnosisKey) Reset()
func (*DiagnosisKey) String ¶
func (x *DiagnosisKey) String() string
func (*DiagnosisKey) ToExposureKey ¶
func (key *DiagnosisKey) ToExposureKey() keyserverapi.ExposureKey
ToExposureKey convert struct from DiagnosisKeyWrapper to DiagnosisKey
func (*DiagnosisKey) ToWrapper ¶
func (key *DiagnosisKey) ToWrapper() *DiagnosisKeyWrapper
ToWrapper convert struct from DiagnosisKey to DiagnosisKeyWrapper
type DiagnosisKeyBatch ¶
type DiagnosisKeyBatch struct { Keys []*DiagnosisKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*DiagnosisKeyBatch) Descriptor
deprecated
func (*DiagnosisKeyBatch) Descriptor() ([]byte, []int)
Deprecated: Use DiagnosisKeyBatch.ProtoReflect.Descriptor instead.
func (*DiagnosisKeyBatch) GetKeys ¶
func (x *DiagnosisKeyBatch) GetKeys() []*DiagnosisKey
func (*DiagnosisKeyBatch) ProtoMessage ¶
func (*DiagnosisKeyBatch) ProtoMessage()
func (*DiagnosisKeyBatch) ProtoReflect ¶
func (x *DiagnosisKeyBatch) ProtoReflect() protoreflect.Message
func (*DiagnosisKeyBatch) Reset ¶
func (x *DiagnosisKeyBatch) Reset()
func (*DiagnosisKeyBatch) String ¶
func (x *DiagnosisKeyBatch) String() string
type DiagnosisKeyWrapper ¶
type DiagnosisKeyWrapper struct { ID int32 `pg:",pk" json:"id"` CreatedAt time.Time `pg:"default:now()" json:"created_at"` KeyData string `pg:",notnull,unique" json:"keyData,omitempty"` RollingStartIntervalNumber uint32 `pg:",use_zero" json:"rollingStartIntervalNumber,omitempty"` RollingPeriod uint32 `pg:",use_zero" json:"rollingPeriod,omitempty"` TransmissionRiskLevel int32 `pg:",use_zero" json:"transmissionRiskLevel,omitempty"` VisitedCountries []string `json:"visitedCountries,omitempty"` Origin string `pg:"default:'CZ'" json:"origin,omitempty"` ReportType ReportType `pg:",use_zero" json:"reportType,omitempty"` DaysSinceOnsetOfSymptoms int32 `pg:",use_zero" json:"days_since_onset_of_symptoms,omitempty"` Retries int `pg:"default:0,use_zero" json:"retries,omitempty"` IsUploaded bool `pg:"default:False,notnull,use_zero" json:"isUploaded,omitempty"` // contains filtered or unexported fields }
DiagnosisKeyWrapper map json response from EFGS to local DiagnosisKey structure
func (*DiagnosisKeyWrapper) ToData ¶
func (wrappedKey *DiagnosisKeyWrapper) ToData() *DiagnosisKey
ToData convert struct from DiagnosisKeyWrapper to DiagnosisKey.
type DownloadBatchResponse ¶
type DownloadBatchResponse struct {
Keys []DiagnosisKey `json:"keys"`
}
DownloadBatchResponse Response for download batch call to EFGS
type IssueCodeRequest ¶
type IssueCodeRequest = verifserverapi.IssueCodeRequest
IssueCodeRequest Issue code request to the Verification server
type IssueCodeResponse ¶
type IssueCodeResponse = verifserverapi.IssueCodeResponse
IssueCodeResponse Issue code response from the Verification server
type ReportType ¶
type ReportType int32
const ( ReportType_UNKNOWN ReportType = 0 ReportType_CONFIRMED_TEST ReportType = 1 ReportType_CONFIRMED_CLINICAL_DIAGNOSIS ReportType = 2 ReportType_SELF_REPORT ReportType = 3 ReportType_RECURSIVE ReportType = 4 ReportType_REVOKED ReportType = 5 )
func (ReportType) Descriptor ¶
func (ReportType) Descriptor() protoreflect.EnumDescriptor
func (ReportType) Enum ¶
func (x ReportType) Enum() *ReportType
func (ReportType) EnumDescriptor
deprecated
func (ReportType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReportType.Descriptor instead.
func (ReportType) Number ¶
func (x ReportType) Number() protoreflect.EnumNumber
func (ReportType) String ¶
func (x ReportType) String() string
func (ReportType) Type ¶
func (ReportType) Type() protoreflect.EnumType
func (*ReportType) UnmarshalJSON ¶
func (s *ReportType) UnmarshalJSON(data []byte) error
UnmarshalJSON Accepts ReportType in both integer and string form.
type UploadBatchResponse ¶
type UploadBatchResponse struct { StatusCode int `json:"code,omitempty"` Error []int `json:"500"` Duplicate []int `json:"409"` Success []int `json:"201"` }
UploadBatchResponse Response for upload batch call to EFGS
type VerifyRequest ¶
type VerifyRequest = verifserverapi.VerifyCodeRequest
VerifyRequest Verify request to the Verification server
type VerifyResponse ¶
type VerifyResponse = verifserverapi.VerifyCodeResponse
VerifyResponse Verify response from the Verification server