verifyapi

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package verifyapi implements the exchange of the verification code (short term token) for a long term token that can be used to get a verification certification to send to the key server.

This is steps 4/5 as specified here: https://developers.google.com/android/exposure-notifications/verification-system#flow-diagram

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricPrefix = observability.MetricRoot + "/api/verify"
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is a controller for the verification code verification API.

func (*Controller) HandleVerify

func (c *Controller) HandleVerify() http.Handler

type Metrics added in v0.5.1

type Metrics struct {
	CodeVerifyAttempts    *stats.Int64Measure
	CodeVerifyExpired     *stats.Int64Measure
	CodeVerifyCodeUsed    *stats.Int64Measure
	CodeVerifyInvalid     *stats.Int64Measure
	CodeVerified          *stats.Int64Measure
	CodeVerificationError *stats.Int64Measure
}

Jump to

Keyboard shortcuts

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