enclient

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

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.

func PostRequest

func PostRequest(url string, data interface{}) (*http.Response, error)

PostRequest requests to the specified url. This methods attempts to serialize data argument as a json.

Types

type Interval

type Interval int32

func NewInterval

func NewInterval(time int64) Interval

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.

Jump to

Keyboard shortcuts

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