engine

package
v0.0.0-...-a80db3c Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64

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

func (*Base64) Init

func (b *Base64) Init(ctx context.Context, cfg *gcfg.Config)

Init 初始化服务

func (*Base64) NewAndStore

func (b *Base64) NewAndStore(ctx context.Context, name string) error

NewAndStore 创建验证码,直接输出验证码图片内容到HTTP Response.

func (*Base64) VerifyAndClear

func (b *Base64) VerifyAndClear(r *ghttp.Request, name string, value string) bool

VerifyAndClear 校验验证码,并清空缓存的验证码信息

Jump to

Keyboard shortcuts

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