recaptcha

package
v0.0.0-...-291b6b4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(c RecaptchaInfo)

Configure adds the settings for Google reCAPTCHA

func RecaptchaPlugin

func RecaptchaPlugin() template.FuncMap

RecaptchaFuncMapp returns a map of functions that are usable in templates

func Verified

func Verified(r *http.Request) bool

Verified returns whether the Google reCAPTCHA was verified or not

Types

type RecaptchaInfo

type RecaptchaInfo struct {
	Enabled bool
	Secret  string
	SiteKey string
}

RecaptchaInfo has the details for the Google reCAPTCHA

func ReadConfig

func ReadConfig() RecaptchaInfo

ReadConfig returns the settings for Google reCAPTCHA

Jump to

Keyboard shortcuts

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