v1

package
v0.0.0-...-3e06d77 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Default number of digits in captcha solution.
	DefaultLen = 6
	// The number of captchas created that triggers garbage collection used
	// by default store.
	CollectNum = 100
	// Expiration time of captchas used by default store.
	Expiration = 10 * time.Minute
)
View Source
const (
	// Standard width and height of a captcha image.
	StdWidth  = 240
	StdHeight = 80
)

Variables

View Source
var (
	ErrNotFound = errors.New("captcha: id not found")
)

Functions

This section is empty.

Types

type Handlers

type Handlers struct{}

func (*Handlers) CreateAction

func (*Handlers) CreateAction(w http.ResponseWriter, r *http.Request)

*

  • create user *

func (*Handlers) IndexAction

func (h *Handlers) IndexAction(w http.ResponseWriter, r *http.Request)

func (*Handlers) LoginAction

func (h *Handlers) LoginAction(w http.ResponseWriter, r *http.Request)

func (*Handlers) LogoutAction

func (*Handlers) LogoutAction(w http.ResponseWriter, r *http.Request)

*

  • logout *

func (*Handlers) NewcaptchaAction

func (h *Handlers) NewcaptchaAction(w http.ResponseWriter, r *http.Request)

func (*Handlers) ReloadcaptchaAction

func (h *Handlers) ReloadcaptchaAction(w http.ResponseWriter, r *http.Request)

func (*Handlers) VerifycaptchaAction

func (h *Handlers) VerifycaptchaAction(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
Godeps
_workspace/src/github.com/dchest/captcha
Package captcha implements generation and verification of image and audio CAPTCHAs.
Package captcha implements generation and verification of image and audio CAPTCHAs.
_workspace/src/github.com/go-sql-driver/mysql
Package mysql provides a MySQL driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
Package mysql provides a MySQL driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details

Jump to

Keyboard shortcuts

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