Skip to content

Commit

Permalink
增加middleware包,包括cors和limiter两个中间件
Browse files Browse the repository at this point in the history
  • Loading branch information
anden007 committed Jun 19, 2024
1 parent ed9c952 commit 4b9e1e2
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ require (
github.com/btnguyen2k/consu/olaf v0.1.3
github.com/centrifugal/centrifuge-go v0.10.2
github.com/dave/jennifer v1.7.0
github.com/didip/tollbooth v4.0.2+incompatible
github.com/disintegration/imaging v1.6.2
github.com/go-redis/redis/v8 v8.11.5
github.com/go-redsync/redsync/v4 v4.11.0
Expand All @@ -27,6 +28,7 @@ require (
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/nsqio/go-nsq v1.1.0
github.com/oleiade/reflections v1.0.1
github.com/prometheus/client_golang v1.11.1
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
github.com/robfig/cron/v3 v3.0.1
github.com/rpcxio/libkv v0.5.1
Expand Down Expand Up @@ -60,6 +62,7 @@ require (
github.com/andybalholm/brotli v1.0.6 // indirect
github.com/apache/thrift v0.20.0 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenk/backoff v2.2.1+incompatible // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/centrifugal/protocol v0.10.0 // indirect
Expand Down Expand Up @@ -126,16 +129,21 @@ require (
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/microcosm-cc/bluemonday v1.0.26 // indirect
github.com/miekg/dns v1.1.59 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/onsi/ginkgo/v2 v2.17.2 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/philhofer/fwd v1.1.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.26.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/quic-go/quic-go v0.43.1 // indirect
github.com/rs/cors v1.11.0 // indirect
github.com/rubyist/circuitbreaker v2.2.1+incompatible // indirect
Expand Down
Loading

0 comments on commit 4b9e1e2

Please sign in to comment.