package filterPoly

import (
	"bp.jydev.jianyu360.cn/BaseService/gateway/common"
)

const (
	//BlackListKey 黑名单 black_[id/ip]
	BlackListKey = "black_%s"
	//WhiteListKey 白名单 black_[id]
	WhiteListKey = "white_%s"

	//RateDataKey 访问频率 rate_[alias]_[ladder]_[id/ip]
	RateDataKey = "rate_%s_%d_%s"
	//BlackTimesKey 临时黑名单次数 blackTimes_[id/ip]
	BlackTimesKey = "blackTimes_%s"
	//ExceedTimeKey 超阀次数记录 exceedTime_[alias]_[id/ip] 超过次阈值后每超过x次出现验证码
	ExceedTimeKey = "exceedTime_%s_%s"

	//VerifyRedisKey 验证码存储 verify_[key]
	VerifyRedisKey = "verify_%s"
	//WaitVerifyKey 验证码验证状态 exceedTime_[id/ip]
	WaitVerifyKey = "waitVerify_%s"
	//ErrVerifyKey 验证码错误统计
	ErrVerifyKey = "errVerify_%s"
)

var (
	AllRedis *common.Redis
)
