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.

              Source Files