Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenGRPC ¶ added in v1.0.9
func ListenGRPC() error
func ListenHTTP ¶
func ListenHTTP() error
func ListenPROM ¶ added in v1.0.9
func ListenPROM() error
func MustListenGRPC ¶ added in v1.0.9
func MustListenGRPC()
func MustListenHTTP ¶ added in v1.0.9
func MustListenHTTP()
func MustListenPROM ¶ added in v1.0.9
func MustListenPROM()
func MustListenUDP ¶ added in v1.0.9
func MustListenUDP()
Types ¶
type SiteVerifyResponse ¶ added in v1.0.9
type SiteVerifyResponse struct {
Success bool `json:"success"`
Score float64 `json:"score"`
Action string `json:"action"`
ChallengeTS time.Time `json:"challenge_ts"`
Hostname string `json:"hostname"`
ErrorCodes []string `json:"error-codes"`
}
func CheckRecaptcha ¶ added in v1.0.9
func CheckRecaptcha(secret, response string) (*SiteVerifyResponse, error)
Click to show internal directories.
Click to hide internal directories.