captcha

package
v0.0.0-...-1ec6b49 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assessor

type Assessor interface {
	CompleteAssessment(ctx *gin.Context, cfg configuration.RegistrationServiceConfig, token string) (float32, error)
}

type Helper

type Helper struct{}

func (Helper) CompleteAssessment

func (c Helper) CompleteAssessment(ctx *gin.Context, cfg configuration.RegistrationServiceConfig, token string) (float32, error)

* * Creates an assessment to analyze the risk of a signup. * * @param ctx: The request context. * @param cfg: The Registration Service Configuration object. * @param token: The token obtained from the client on passing the reCAPTCHA Site Key.

returns the score value and nil if the assessment was successful, otherwise returns -1 and the error.

Jump to

Keyboard shortcuts

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