code

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxFialNum = 5

Functions

func DelCode

func DelCode(account string)

DelCode 删除指定邮箱缓存的验证码

func GetAllCode

func GetAllCode() map[string]*CodeInfo

GetAllCode 获取全部已缓存的验证码

func SetCode

func SetCode(account string, code int32) error

SetCode 设置邮箱的验证码 直接刷新

Types

type Code

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

func (*Code) CheckCodeTime

func (x *Code) CheckCodeTime()

CheckCodeTime 定时检查一次是否有验证码过期

type CodeInfo

type CodeInfo struct {
	Code int32 // 验证码

	FialNum int
	// contains filtered or unexported fields
}

func GetCodeInfo

func GetCodeInfo(account string) *CodeInfo

GetCodeInfo 通过邮箱获取缓存的验证码

Jump to

Keyboard shortcuts

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