contracts/captcha.go
2024-01-29 22:35:05 +08:00

14 lines
267 B
Go

package contracts
import (
"net/http"
"github.com/samber/do"
)
type Captcha interface {
HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler
Verify(id, answer string, clear bool) error
Generate(captchaUuid string) (id, answer string)
}