Documentation ¶
Overview ¶
Package enclient is a client for making requests against the exposure notification server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExposureKey ¶
func ExposureKey(key string, intervalNumber Interval, intervalCount int32, transmissionRisk int) verifyapi.ExposureKey
ExposureKey creates an exposure key.
func JSONRequest ¶
func JSONRequest(data interface{}) []byte
JSONRequest serializes the given argument to json.
Types ¶
type Interval ¶
type Interval int32
func NewInterval ¶
NewInterval creates a new interval for the UNIX epoch given.
func NowInterval ¶
func NowInterval() Interval
NowInterval returns the Interval for the current moment of tme.
Click to show internal directories.
Click to hide internal directories.