interfaces

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptchaFunc

type CaptchaFunc struct {
	// contains filtered or unexported fields
}

CaptchaFunc is a template helper to generate a new captcha

func (*CaptchaFunc) Func

func (f *CaptchaFunc) Func() interface{}

Func returns the template function to generate a new captcha

func (*CaptchaFunc) Inject

func (f *CaptchaFunc) Inject(
	config *struct {
		Len float64 `inject:"config:captcha.len"`
	},
	g *application.Generator,
)

Inject dependencies

type CaptchaImgFunc

type CaptchaImgFunc struct{}

CaptchaImgFunc is a template helper to get the image URL for a captcha

func (*CaptchaImgFunc) Func

func (f *CaptchaImgFunc) Func() interface{}

Func returns the template function to get the image URL from a given captcha

type CaptchaSoundFunc

type CaptchaSoundFunc struct{}

CaptchaSoundFunc is a template helper to get the audio URL for a captcha

func (*CaptchaSoundFunc) Func

func (f *CaptchaSoundFunc) Func() interface{}

Func returns the template function to get the audio URL from a given captcha

Jump to

Keyboard shortcuts

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