http

package
v0.0.0-...-ef937ea Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNoUserId   = httpErrors.NewRestError(http.StatusBadRequest, "No user_id field", nil)
	ErrorNoUserName = httpErrors.NewRestError(http.StatusBadRequest, "No user_name field", nil)
	ErrorNoUrl      = httpErrors.NewRestError(http.StatusBadRequest, "No totp_url field", nil)
	ErrorNoTotpCode = httpErrors.NewRestError(http.StatusBadRequest, "No totp_code field", nil)
	ErrorNoBothId   = httpErrors.NewRestError(http.StatusBadRequest, "No user_id and totp_id fields", nil)
)

Functions

func MapTOTPRoutes

func MapTOTPRoutes(totpGroup *echo.Group, h totp.Handlers, mw *middleware.MiddlewareManager)

func NewTOTPHandlers

func NewTOTPHandlers(cfg *config.Config, totpUC totp.UseCase, log logger.Logger) totp.Handlers

Types

This section is empty.

Jump to

Keyboard shortcuts

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