utils

package
v0.0.0-...-3322d40 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKey

func GenKey() string

GenKey returns a randomly generated 64 character string, using only alphanumeric characters and a small selection of special characters.

func GenSlug

func GenSlug() string

GenSlug returns a randomly generated 6 character alphanumeric string.

func PostCount

func PostCount(c context.Context, key string, count int)

PostCount sends a count stat to the configured StatHat account.

func PostValue

func PostValue(c context.Context, key string, value float64)

PostValue sends a value stat to the configured StatHat account.

func VerifyCaptcha

func VerifyCaptcha(c context.Context, vals map[string]string) bool

VerifyCaptcha verifies the supplied values are a valid solved captcha. Read the required parameters in the reCAPTCHA documentation, found here: https://developers.google.com/recaptcha/docs/verify

Types

This section is empty.

Jump to

Keyboard shortcuts

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