captcha

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Captcha

func Captcha() *captcha

Captcha return new captcha Middleware

func Clear

func Clear(cc *captcha, ctx *context.Context)

Clear delete captcha text in current session

func Current

func Current(cc *captcha, ctx *context.Context) (str string)

Current return current session captcha text

func Equals

func Equals(cc *captcha, ctx *context.Context, val string, ignoreCase bool) bool

Equals return true if current session captcha text equals val

func Match

func Match(cc *captcha, ctx *context.Context, ignoreCase bool) bool

Match return true if current session captcha text equals text in captcha

Types

type Generator

type Generator interface {
	// contains filtered or unexported methods
}

Generator defines generate interface

Jump to

Keyboard shortcuts

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