efgs

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupDatabase added in v0.5.0

func CleanupDatabase(w http.ResponseWriter, r *http.Request)

CleanupDatabase Remove old (more than EFGS_EXPOSURE_KEYS_EXPIRATION days) keys from database.

func DownloadAndSaveKeys added in v0.5.0

func DownloadAndSaveKeys(w http.ResponseWriter, r *http.Request)

DownloadAndSaveKeys Downloads batch from EFGS.

func DownloadAndSaveYesterdaysKeys added in v0.5.0

func DownloadAndSaveYesterdaysKeys(w http.ResponseWriter, r *http.Request)

DownloadAndSaveYesterdaysKeys Downloads batch from whole yesterday from EFGS.

func DownloadAndSaveYesterdaysKeysPostponed added in v0.5.8

func DownloadAndSaveYesterdaysKeysPostponed(ctx context.Context, m pubsub.Message) error

DownloadAndSaveYesterdaysKeysPostponed Continue in downloading yesterdays key, according to received batch params.

func ImportKeysToKeyServer added in v0.5.0

func ImportKeysToKeyServer(ctx context.Context, m pubsub.Message) error

ImportKeysToKeyServer Imports keys to Key server

func IssueTestingVerificationCode added in v0.5.0

func IssueTestingVerificationCode(w http.ResponseWriter, r *http.Request)

IssueTestingVerificationCode Issues new VC for publishing keys.

func ToDiagnosisKey added in v0.5.0

func ToDiagnosisKey(symptomsSince time.Time, key *keyserverapi.ExposureKey, origin string, visitedCountries []string) *efgsapi.DiagnosisKey

ToDiagnosisKey Converts ExposureKey to DiagnosisKey

func UploadBatch added in v0.5.0

func UploadBatch(w http.ResponseWriter, r *http.Request)

UploadBatch Called in CRON. Gets keys from database and upload them to EFGS.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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