util

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package util is a CLI tool for generating test exposure key data.

Index

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 RandomInt

func RandomInt(maxValue int) (int, error)

RandomInt produces a random integer up to but not including maxValue.

func RandomIntervalCount

func RandomIntervalCount() (int32, error)

RandomIntervalCount produces a random interval.

func RandomReportType

func RandomReportType() (string, error)

func RandomRevisedReportType

func RandomRevisedReportType() (string, error)

func RandomTEK added in v0.25.0

func RandomTEK() ([]byte, error)

RandomTEK generates a new random 16-byte TEK.

func RandomTransmissionRisk

func RandomTransmissionRisk() (int, error)

RandomTransmissionRisk produces a random transmission risk score.

Types

This section is empty.

Jump to

Keyboard shortcuts

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