diff --git a/captcha.go b/captcha.go new file mode 100644 index 0000000..70c0636 --- /dev/null +++ b/captcha.go @@ -0,0 +1,13 @@ +package contracts + +import ( + "net/http" + + "github.com/samber/do" +) + +type Captcha interface { + Middleware(container *do.Injector) func(next http.Handler) http.Handler + Verify(id, answer string, clear bool) bool + Generate(captchaUuid string) (id, answer string) +}