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.
Click to show internal directories.
Click to hide internal directories.