modules

package
v0.0.0-...-abc2ec5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RedisCaptchaCurNumKey = "captcha:cur"

RedisCaptchaCurNumKey 当前验证码数量

View Source
const RedisCaptchaMaxNumKey = "captcha:max"

RedisCaptchaMaxNumKey 保有的验证码最大数量

View Source
const RedisCaptchaStorePrefix = "captcha:collects:"

RedisCaptchaStorePrefix 验证码种子集合前缀

Variables

View Source
var ModuleContext moduleWrapper

ModuleContext 模块上下文

Functions

func Setup

func Setup()

Setup 初始化Modules

Types

type Host

type Host struct {
	Address string `json:"address"`
	Port    int    `json:"port"`
}

type RedisCaptchaStore

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

func NewRedisCaptchaStore

func NewRedisCaptchaStore(collectNum int, expiration time.Duration) *RedisCaptchaStore

func (*RedisCaptchaStore) Get

func (store *RedisCaptchaStore) Get(id string, clear bool) (digits []byte)

func (*RedisCaptchaStore) Set

func (store *RedisCaptchaStore) Set(id string, digits []byte)

Jump to

Keyboard shortcuts

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