Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RucaptchaKey string `yaml:"rucaptchaKey,omitempty" doc:"API-ключ для сервиса rucaptcha.com."`
}
type TokenProvider ¶
type TokenProvider interface {
GetCaptchaToken(ctx context.Context, userAgent, siteKey, pageURL string) (string, error)
}
func NewTokenProvider ¶
func NewTokenProvider(cfg Config, clock based.Clock) (TokenProvider, error)
Click to show internal directories.
Click to hide internal directories.