Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
update dependency & fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sansui233 committed Dec 6, 2020
1 parent c4cf7de commit 9a1a662
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.so
*.dylib
bin/*
tmp/*

# Test binary, build with `go test -c`
*.test
Expand Down
8 changes: 8 additions & 0 deletions api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package api
import (
"github.com/Sansui233/proxypool/pkg/provider"
"github.com/Sansui233/proxypoolCheck/config"
"github.com/Sansui233/proxypoolCheck/internal/app"
appcache "github.com/Sansui233/proxypoolCheck/internal/cache"
"github.com/gin-contrib/cache"
"github.com/gin-contrib/cache/persistence"
Expand Down Expand Up @@ -166,6 +167,13 @@ func setupRouter(){
}
c.String(200, text)
})
router.GET("/forceupdate", func(c *gin.Context) {
err := app.InitApp()
if err != nil {
c.String(http.StatusOK, err.Error())
}
c.String(http.StatusOK, "Updated")
})
}

func Run() {
Expand Down
17 changes: 16 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@ module github.com/Sansui233/proxypoolCheck
go 1.15

require (
github.com/Sansui233/proxypool v0.5.1
github.com/PuerkitoBio/goquery v1.6.0 // indirect
github.com/Sansui233/proxypool v0.5.3
github.com/antchfx/xmlquery v1.3.3 // indirect
github.com/antchfx/xpath v1.1.11 // indirect
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b // indirect
github.com/ghodss/yaml v1.0.0
github.com/gin-contrib/cache v1.1.0
github.com/gin-gonic/gin v1.6.3
github.com/go-playground/validator/v10 v10.4.1 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/jasonlvhit/gocron v0.0.1
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/ugorji/go v1.2.1 // indirect
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c // indirect
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb // indirect
golang.org/x/sys v0.0.0-20201204225414-ed752295db88 // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
golang.org/x/text v0.3.4 // indirect
google.golang.org/appengine v1.6.7 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)
Loading

0 comments on commit 9a1a662

Please sign in to comment.