package
0.0.0-20250220022732-e4c125a5ade9
Repository: https://github.com/quantumshiftx/golib.git
Documentation: pkg.go.dev

# Functions

GetReCaptcha 获取 reCAPTCHA 服务实例.
GetTwoFactor 获取双因素认证服务实例.
NewReCaptchaService 创建新的ReCaptchaService实例.
NewTwoFactorAuth 创建新的TwoFactorAuth实例.
Setup 初始化所有服务.
SetupReCaptcha 初始化 reCAPTCHA 服务.
SetupTwoFactor 初始化双因素认证服务.
WithCodeLength 设置验证码长度.
WithTimeStep 设置TOTP时间步长.
WithWindowSize 设置时间窗口大小.

# Constants

ReCaptcha 相关常量.
ReCaptcha 相关常量.
ReCaptcha 相关常量.

# Structs

Config 配置结构.
No description provided by the author
ReCaptcha 请求结构.
ReCaptcha 响应结构.
No description provided by the author
ReCaptchaService 处理 Google reCAPTCHA 验证.
TwoFactorAuth 处理双因素认证.

# Interfaces

HTTPClient 接口用于HTTP请求,方便测试时mock.

# Type aliases

TwoFactorOption 定义TwoFactorAuth的可选配置.