recaptcha

package module
v0.0.0-...-28295f7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 15 Imported by: 0

README

recaptcha

Google ReCaptcha feature for site and requests

Documentation

Index

Constants

View Source
const (
	SiteKey key = iota
	FormsKey
)
View Source
const CfgKey = "recaptcha"

Variables

This section is empty.

Functions

func Get

func Get(site *core.Site) (r *recaptcha.ReCaptcha)

func PageSetup

func PageSetup(ph render.PageHandler)

func Setup

func Setup(site *core.Site, forms Forms)

Types

type Config

type Config struct {
	Disabled bool
	Forms    maps.MapSI
}

type Forms

type Forms = maps.MapSiSlice

type Plugin

type Plugin struct {
	RenderKey,
	SitesRegisterKey string
	Forms Forms
}

func (*Plugin) Init

func (p *Plugin) Init(opts *plug.Options)

func (*Plugin) RequireOptions

func (p *Plugin) RequireOptions() []string

Jump to

Keyboard shortcuts

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