Documentation ¶
Overview ¶
Package util is a CLI tool for generating test exposure key data.
Index ¶
- func GenerateExposureKeys(numKeys, tr int, randomInterval bool) []v1.ExposureKey
- func GenerateExposuresForIntervals(intervals []int32) ([]v1.ExposureKey, error)
- func RandomExposureKey(intervalNumber int32, intervalCount int32, transmissionRisk int) (v1.ExposureKey, error)
- func RandomInt(maxValue int) (int, error)
- func RandomIntervalCount() (int32, error)
- func RandomReportType() (string, error)
- func RandomRevisedReportType() (string, error)
- func RandomTEK() ([]byte, error)
- func RandomTransmissionRisk() (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateExposureKeys ¶
func GenerateExposureKeys(numKeys, tr int, randomInterval bool) []v1.ExposureKey
GenerateExposureKeys creates the given number of exposure keys.
func GenerateExposuresForIntervals ¶ added in v0.22.0
func GenerateExposuresForIntervals(intervals []int32) ([]v1.ExposureKey, error)
GenerateExposuresForIntervals generates a key for each interval start passed in
func RandomExposureKey ¶
func RandomExposureKey(intervalNumber int32, intervalCount int32, transmissionRisk int) (v1.ExposureKey, error)
RandomExposureKey creates a random exposure key.
func RandomIntervalCount ¶
RandomIntervalCount produces a random interval.
func RandomReportType ¶
func RandomRevisedReportType ¶
func RandomTransmissionRisk ¶
RandomTransmissionRisk produces a random transmission risk score.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.