mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 09:38:06 -06:00
[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>
This commit is contained in:
parent
daec9ab10e
commit
bee8458a2d
43 changed files with 4692 additions and 443 deletions
12
vendor/modules.txt
vendored
12
vendor/modules.txt
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue