Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrReCAPTCHANotInit = tracerr.New("reCAPTCHA not init")
)
Functions ¶
Types ¶
type ReCAPTCHAInstance ¶
type ReCAPTCHAInstance struct { recaptcha.ReCAPTCHA // contains filtered or unexported fields }
var ReCAPTCHA *ReCAPTCHAInstance
func Instance ¶
func Instance(secret string, cnmirror bool, timeout int) (*ReCAPTCHAInstance, error)
func (*ReCAPTCHAInstance) VerifyCAPTCHA ¶
func (r *ReCAPTCHAInstance) VerifyCAPTCHA(response string, ip string) error
VerifyCAPTCHA verify reCAPTCHA based on response and ip.
Click to show internal directories.
Click to hide internal directories.