storj/satellite/satellitedb/dbx
Ethan 21a5d70a83 satellite/metainfo: Rate limiting - API requests
Limits how many times metainfo APIs can be called per second by project ID. If limit is exceeded, the API will return Unauthorized/Too Many requests.

Limit per second and the size of the limiter cache per project are configurable, as well as whether the limiter is enabled.

Tests added/updated for the new rate_limit field in projects table.
Tests added for exceeding limits and disableing limiter.

Change-Id: Ic8ad102de3b690a475809d4f684156d5715f20fa
2020-01-21 14:25:04 +00:00
..
templates satellite/satellitedb/dbx: monitor the database calls 2019-12-18 21:57:36 +00:00
gen.go all: fix import groupings 2020-01-20 17:47:44 +00:00
gen.sh satellite: use tagsql 2020-01-19 14:39:16 +02:00
satellitedb.dbx satellite/metainfo: Rate limiting - API requests 2020-01-21 14:25:04 +00:00
satellitedb.dbx.cockroach.sql satellite/metainfo: Rate limiting - API requests 2020-01-21 14:25:04 +00:00
satellitedb.dbx.go satellite/metainfo: Rate limiting - API requests 2020-01-21 14:25:04 +00:00
satellitedb.dbx.postgres.sql satellite/metainfo: Rate limiting - API requests 2020-01-21 14:25:04 +00:00