recaptcha

package
v0.0.0-...-6e90d5c Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recaptcha

type Recaptcha interface {
	// Verify verifies recaptcha with google server
	Verify(remoteIP string, code string) (bool, error)

	// Site returns recaptcha site key
	Site() string
}

Recaptcha uses to verify google recaptcha

func New

func New(site string, secret string) Recaptcha

New creates new Recaptcha

func NewWithClient

func NewWithClient(site string, secret string, client *http.Client) Recaptcha

NewWithClient creates new Recaptcha with http client

Jump to

Keyboard shortcuts

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