zfeng

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

zFeng

golang1.18 + quasar + vue3 + typescript

##模块 database - 数据库模块 cache - 缓存模块 logs - 日志模块 router - 路由模块 conf - 配置文件 validator - 验证参数 utils - 工具模块 broadcast - 广播方法 crypto - des加密解密 index - 获取用户IP|md5加密 file - 文件写入|拷贝文件|拷贝目录|判断路径|判断文件|递归创建 slice - 数组包含字符串|数组包含数字|Map转参数|获取val值|获取key值

Documentation

Index

Constants

View Source
const RedisName = "captcha_"

Variables

View Source
var (
	// ConfInfo 配置文件
	ConfInfo *conf.Config
)

Functions

func NewApp

func NewApp(confPath string) *router.Router

NewApp 创建框架对象

Types

type RedisStore

type RedisStore struct {
	Expire time.Duration
}

func (*RedisStore) Get

func (rs *RedisStore) Get(id string, clear bool) (digits []byte)

Get 获取验证码数据

func (*RedisStore) Set

func (rs *RedisStore) Set(id string, digits []byte)

Set 设置验证码数据

Jump to

Keyboard shortcuts

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