This commit is contained in:
Yuzuki616
2023-07-29 19:27:15 +08:00
parent 78ee16a505
commit ddafdf79b8
56 changed files with 129 additions and 119 deletions

View File

@@ -1,7 +1,7 @@
package iprecoder
import (
"github.com/Yuzuki616/V2bX/limiter"
"github.com/InazumaV/V2bX/limiter"
)
type IpRecorder interface {

View File

@@ -2,11 +2,12 @@ package iprecoder
import (
"errors"
"github.com/Yuzuki616/V2bX/conf"
"github.com/Yuzuki616/V2bX/limiter"
"time"
"github.com/InazumaV/V2bX/conf"
"github.com/InazumaV/V2bX/limiter"
"github.com/go-resty/resty/v2"
"github.com/goccy/go-json"
"time"
)
type Recorder struct {

View File

@@ -3,11 +3,12 @@ package iprecoder
import (
"context"
"fmt"
"github.com/Yuzuki616/V2bX/conf"
"github.com/Yuzuki616/V2bX/limiter"
"github.com/go-redis/redis/v8"
"strconv"
"time"
"github.com/InazumaV/V2bX/conf"
"github.com/InazumaV/V2bX/limiter"
"github.com/go-redis/redis/v8"
)
type Redis struct {

View File

@@ -1,10 +1,11 @@
package iprecoder
import (
"github.com/Yuzuki616/V2bX/conf"
"github.com/Yuzuki616/V2bX/limiter"
"log"
"testing"
"github.com/InazumaV/V2bX/conf"
"github.com/InazumaV/V2bX/limiter"
)
func TestRedis_SyncOnlineIp(t *testing.T) {