Documentation
¶
Index ¶
- Constants
- Variables
- type Handlers
- func (*Handlers) CreateAction(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) IndexAction(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) LoginAction(w http.ResponseWriter, r *http.Request)
- func (*Handlers) LogoutAction(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) NewcaptchaAction(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) ReloadcaptchaAction(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) VerifycaptchaAction(w http.ResponseWriter, r *http.Request)
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 |
Click to show internal directories.
Click to hide internal directories.