Module name was changet to git.arav.top/Arav/justcaptcha.
This commit is contained in:
parent
9bb80f1f6c
commit
fcb656d4ea
@ -3,7 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"justcaptcha/internal/http"
|
|
||||||
"log"
|
"log"
|
||||||
"net/netip"
|
"net/netip"
|
||||||
"os"
|
"os"
|
||||||
@ -11,6 +10,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.arav.top/Arav/justcaptcha/internal/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string
|
var version string
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module justcaptcha
|
module git.arav.top/Arav/justcaptcha
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
@ -3,11 +3,12 @@ package http
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"image/jpeg"
|
"image/jpeg"
|
||||||
"justcaptcha/pkg/captcha"
|
|
||||||
"justcaptcha/pkg/captcha/inmemdb"
|
|
||||||
"justcaptcha/pkg/dwcaptcha"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.arav.top/Arav/justcaptcha/pkg/captcha"
|
||||||
|
"git.arav.top/Arav/justcaptcha/pkg/captcha/inmemdb"
|
||||||
|
"git.arav.top/Arav/justcaptcha/pkg/dwcaptcha"
|
||||||
)
|
)
|
||||||
|
|
||||||
const errMsgWrongAnswer = "An answer provided was wrong"
|
const errMsgWrongAnswer = "An answer provided was wrong"
|
||||||
|
@ -2,9 +2,10 @@ package inmemdb
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
"justcaptcha/pkg/captcha"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.arav.top/Arav/justcaptcha/pkg/captcha"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InMemoryCaptchaDB struct {
|
type InMemoryCaptchaDB struct {
|
||||||
|
@ -2,10 +2,11 @@ package dwcaptcha
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
"justcaptcha/pkg/captcha"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.arav.top/Arav/justcaptcha/pkg/captcha"
|
||||||
|
|
||||||
"github.com/fogleman/gg"
|
"github.com/fogleman/gg"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user