Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application contains captcha's infomation, such as application ID, secret key.
func New ¶
func New(client *captcha.Client, id uint64, secretKey string) *Application
New returns a captcha application with the given client, application ID and secret key.
func (*Application) Verify ¶
func (app *Application) Verify(ticket, randstr, ipAddr string) error
Verify verifies whether is captcha info is valid.
Click to show internal directories.
Click to hide internal directories.