http

package
v0.0.0-...-15a51b0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const SECRET = "a72cd591-5b57-4ffe-b6e3-e99c317ff43c"

Variables

View Source
var SecretKey jwk.Key

Functions

func GetOTPKeyByNmae

func GetOTPKeyByNmae(c *fiber.Ctx) error

生成一个OTP密钥

func GetPassCodeByNmae

func GetPassCodeByNmae(c *fiber.Ctx) error

获取当前验证码

func Ping

func Ping(ctx *fiber.Ctx) error

@Summary Ping @Description ping @Produce application/json @Tags ping @Router /ping [GET] @Success 200 string string "pong"

func Start

func Start(addr string)

OTP Server API @title OTP Server API @version 1.0 @Description OTP Server API @host localhost:18181 @BasePath /

func Validate

func Validate(c *fiber.Ctx) error

校验验证码是否有效

Types

This section is empty.

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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