From bee8458a2d12bdd42079fcb2c4ca88ebeafe305b Mon Sep 17 00:00:00 2001 From: nya1 Date: Wed, 31 Aug 2022 12:06:14 +0200 Subject: [feature] add rate limit middleware (#741) * feat: add rate limit middleware * chore: update vendor dir * chore: update readme with new dependency * chore: add rate limit infos to swagger.md file * refactor: add ipv6 mask limiter option Add IPv6 CIDR /64 mask * refactor: increase rate limit to 1000 Address https://github.com/superseriousbusiness/gotosocial/pull/741#discussion_r945584800 Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com> --- vendor/modules.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'vendor/modules.txt') diff --git a/vendor/modules.txt b/vendor/modules.txt index 4c87584a5..9bb033209 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -230,7 +230,7 @@ github.com/json-iterator/go # github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 ## explicit github.com/kballard/go-shellquote -# github.com/klauspost/compress v1.13.6 +# github.com/klauspost/compress v1.15.0 ## explicit; go 1.15 github.com/klauspost/compress/s2 # github.com/klauspost/cpuid v1.3.1 @@ -295,6 +295,9 @@ github.com/pelletier/go-toml/v2 github.com/pelletier/go-toml/v2/internal/ast github.com/pelletier/go-toml/v2/internal/danger github.com/pelletier/go-toml/v2/internal/tracker +# github.com/pkg/errors v0.9.1 +## explicit +github.com/pkg/errors # github.com/pmezard/go-difflib v1.0.0 ## explicit github.com/pmezard/go-difflib/difflib @@ -563,6 +566,13 @@ github.com/tmthrgd/go-hex # github.com/ugorji/go/codec v1.2.7 ## explicit; go 1.11 github.com/ugorji/go/codec +# github.com/ulule/limiter/v3 v3.10.0 +## explicit; go 1.17 +github.com/ulule/limiter/v3 +github.com/ulule/limiter/v3/drivers/middleware/gin +github.com/ulule/limiter/v3/drivers/store/common +github.com/ulule/limiter/v3/drivers/store/memory +github.com/ulule/limiter/v3/internal/bytebuffer # github.com/uptrace/bun v1.1.7 ## explicit; go 1.17 github.com/uptrace/bun -- cgit v1.3