codestatus

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package codestatus defines a web controller for the code status page of the verification server. This view allows users to view the status of previously-issued OTP codes.

Package codestatus defines a web controller for the code status page of the verification server. This view allows users to view the status of previously-issued OTP codes.

Package codestatus defines a web controller for the code status page of the verification server. This view allows users to view the status of previously-issued OTP codes.

Package codestatus defines a web controller for the code status page of the verification server. This view allows users to view the status of previously-issued OTP codes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewAPI

NewAPI creates a new controller serving API requests.

func NewServer

func NewServer(ctx context.Context, config *config.ServerConfig, db *database.Database, h *render.Renderer) *Controller

NewServer creates a new controller for serving admin server requests.

func (*Controller) CheckCodeStatus

func (c *Controller) CheckCodeStatus(r *http.Request, uuid string) (*database.VerificationCode, int, *api.ErrorReturn)

func (*Controller) HandleCheckCodeStatus

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

func (*Controller) HandleIndex

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

func (*Controller) HandleShow

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

Jump to

Keyboard shortcuts

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