security

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRequest

type CheckRequest struct {
	BotToken string `json:"bot_token"`
}

type CheckResponse

type CheckResponse struct {
	Passed   bool               `json:"passed"`
	BotToken string             `json:"bot_token,omitempty"`
	Captcha  *captcha.Challenge `json:"captcha,omitempty"`
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(botSvc *botcheck.Service, captchaSvc *captcha.Service) *Controller

func (*Controller) Check

func (h *Controller) Check(c *fiber.Ctx) error

func (*Controller) RegisterRoutes

func (h *Controller) RegisterRoutes(router fiber.Router)

func (*Controller) Solve

func (h *Controller) Solve(c *fiber.Ctx) error

type SolveRequest

type SolveRequest struct {
	CaptchaToken  string `json:"captcha_token" validate:"required"`
	CaptchaAnswer string `json:"captcha_answer" validate:"required"`
}

Jump to

Keyboard shortcuts

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