verifypic

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(x float64) float64

取绝对值

func CaluDist

func CaluDist(sx, sy, dx, dy int) float64

计算两点距离

func Check

func Check(w http.ResponseWriter, r *http.Request)

验证用户点选位置正确性

func GenRandImg

func GenRandImg(randstr string, sessid string) image.Image

生成随机中文图片

func GenRandZh

func GenRandZh(leng int) string

func GetData

func GetData(w http.ResponseWriter, r *http.Request)

获取保存的文字顺序

func Hoverclick

func Hoverclick(w http.ResponseWriter, r *http.Request)

icon图片输出

func Outimg

func Outimg(w http.ResponseWriter, r *http.Request)

直接输出验证码图片

func ReadCache

func ReadCache(file string) string

读缓存

func WriteCache

func WriteCache(v interface{}, file string)

写缓存

Types

type FontDot

type FontDot struct {
	Dx   int
	Dy   int
	Text string
}

Jump to

Keyboard shortcuts

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