captcha

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CaptchaLen   = 5
	CaptchaIDLen = 16
)

Variables

Functions

func Fetch

func Fetch(ctx context.Context) (string, error)

Fetch grabs a captcha from the database. If there are no captchas, some will be created.

func Get

func Get() ([]byte, string)

Get returns a JPEG image as the captcha and the solution.

func Make

func Make(ctx context.Context) error

Make creates a captcha and inserts it into the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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