captcha

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

type Captcha struct {
	Tag int    `json:"captcha"`
	MD5 string `json:"check"`
	TS  int64  `json:"timestamp"` // now.Unix() second
	Pic Pnger  `json:"-"`
}

Captcha ...

func NewCaptcha

func NewCaptcha(p Pnger) Captcha

NewCaptcha ...

func (Captcha) OK

func (c Captcha) OK() bool

func (Captcha) PNG

func (c Captcha) PNG() string

type MajongPng added in v0.5.3

type MajongPng struct{}

func (MajongPng) PNG added in v0.5.3

func (m MajongPng) PNG(number int) []byte

type MajongText added in v0.5.3

type MajongText struct{}

MajongText ...

func (MajongText) PNG added in v0.5.3

func (m MajongText) PNG() []byte

TODO ...

type Pnger added in v0.5.3

type Pnger interface {
	PNG(int) []byte
}

Jump to

Keyboard shortcuts

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