Files
boc/vims-backend/node_modules/rate-limiter-flexible/lib/constants.js
T

18 lines
369 B
JavaScript
Raw Normal View History

const LIMITER_TYPES = {
MEMORY: 'memory',
CLUSTER: 'cluster',
MEMCACHE: 'memcache',
MONGO: 'mongo',
REDIS: 'redis',
MYSQL: 'mysql',
POSTGRES: 'postgres',
DYNAMO: 'dynamo'
};
const ERR_UNKNOWN_LIMITER_TYPE_MESSAGE = 'Unknown limiter type. Use one of LIMITER_TYPES constants.';
module.exports = {
LIMITER_TYPES,
ERR_UNKNOWN_LIMITER_TYPE_MESSAGE,
};