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 New ¶
func New(ctx context.Context, config *config.APIServerConfig, db *database.Database, h *render.Renderer, kms keys.KeyManager) (*Controller, error)
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 }
Click to show internal directories.
Click to hide internal directories.