# Functions
DaysBetweenIntervals calculates the number of days between two start intervals.
FromExportKey is used to read a key from an export file and convert it back to the internal database format.
InitHour creates a HealthAuthorityStats record for specified hour.
IntervalNumber calculates the exposure notification system interval number based on the input time.
NewTransformer creates a transformer for turning publish API requests into records for insertion into the database.
ReduceStats takes hourly breakdowns and rolls them up to daily.
ReportTypeTransmissionRisk will calculate the backfill, default Transmission Risk.
ReviseKeys takes a set of existing keys, and a list of keys currently being uploaded.
TimeForIntervalNumber returns the time at which a specific interval starts.
TransformExposureKey converts individual key data to an exposure entity.
TruncateWindow truncates a time based on the size of the creation window.
ValidReportTypeTransition checks if a TEK is allowed to transition from the `from` type to the `to` type.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
StatsMaxOldestTEK represents the oldest age (days) that will be reflected in stats.
StatsMaxOnsetDays represents the oldest symptom onset age that will be reflected in stats.
# Variables
ErrorExposureKeyMismatch - internal coding error, tried to revise key A by passing in key B.
ErrorKeyAlreadyRevised - attempt to revise a key that has already been revised.
ErrorNonLocalProvenance - key revision attempted on federated key, which is not allowed.
ErrorNotSameFederationSource - if a key arrived by federation, it can only be be revised by the same query (same source).
# Structs
ErrorKeyInvalidReportTypeTransition is an error returned when the TEK tried to move to an invalid state (e.g.
ExportImportConfig represents the configuration for processing of export files from other systems and how they are imported into this server.
Exposure represents the record as stored in the database.
HealthAuthorityStats represents the raw metrics for an individual health authority for a given hour.
KeyTransform represents the settings to apply when transforming an individual key on a publish request.
PublishInfo is the paremeters to the AddPublish call.
Transformer represents a configured Publish -> Exposure[] transformer.
No description provided by the author
# Interfaces
TransformerConfig defines the interface that is needed to configure a `Transformer`.