diff --git a/api/router.go b/api/router.go index 9665c19f..b1fec351 100644 --- a/api/router.go +++ b/api/router.go @@ -1,8 +1,6 @@ package api import ( - binhtml "github.com/ssrlive/proxypool/internal/bindata/html" - "github.com/ssrlive/proxypool/log" "html/template" "net/http" "os" @@ -10,16 +8,19 @@ import ( "strings" "time" - "github.com/ssrlive/proxypool/config" - appcache "github.com/ssrlive/proxypool/internal/cache" - "github.com/ssrlive/proxypool/pkg/provider" + binhtml "github.com/ssrlive/proxypool/internal/bindata/html" + "github.com/ssrlive/proxypool/log" + "github.com/gin-contrib/cache" "github.com/gin-contrib/cache/persistence" "github.com/gin-gonic/gin" _ "github.com/heroku/x/hmetrics/onload" + "github.com/ssrlive/proxypool/config" + appcache "github.com/ssrlive/proxypool/internal/cache" + "github.com/ssrlive/proxypool/pkg/provider" ) -const version = "v0.7.5" +const version = "v0.7.6" var router *gin.Engine diff --git a/go.mod b/go.mod index c9a03633..d8b8f13e 100644 --- a/go.mod +++ b/go.mod @@ -11,6 +11,7 @@ require ( github.com/antchfx/htmlquery v1.2.3 // indirect github.com/antchfx/xmlquery v1.2.4 // indirect github.com/antchfx/xpath v1.1.8 // indirect + github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737 // indirect github.com/ghodss/yaml v1.0.0 github.com/gin-contrib/cache v1.1.0 github.com/gin-gonic/gin v1.7.7 @@ -21,6 +22,7 @@ require ( github.com/jasonlvhit/gocron v0.0.1 github.com/json-iterator/go v1.1.10 // indirect github.com/kennygrant/sanitize v1.2.4 // indirect + github.com/memcachier/mc v2.0.1+incompatible // indirect github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.1 // indirect @@ -28,12 +30,14 @@ require ( github.com/patrickmn/go-cache v2.1.0+incompatible github.com/pkg/errors v0.9.1 // indirect github.com/robertkrimen/otto v0.0.0-20200922221731-ef014fd054ac + github.com/robfig/go-cache v0.0.0-20130306151617-9fc39e0dbf62 // indirect github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect github.com/sirupsen/logrus v1.8.1 github.com/temoto/robotstxt v1.1.1 // indirect github.com/x-cray/logrus-prefixed-formatter v0.5.2 google.golang.org/appengine v1.6.6 // indirect gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect + gopkg.in/go-playground/validator.v8 v8.18.2 // indirect gopkg.in/sourcemap.v1 v1.0.5 // indirect gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 gorm.io/driver/postgres v1.3.5