How to use the volos-quota-apigee.create function in volos-quota-apigee

To help you get started, we’ve selected a few volos-quota-apigee examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apigee-127 / volos / serversidetests / servers / apigeequota.js View on Github external
/*
 * This little server runs the "expressserver" from the Quota tests using
 * the Apigee SPI.
 */

 var apigeeQuota = require('volos-quota-apigee');
 var config = require('./volos/testconfig/testconfig-apigee');
 var server = require('./volos/quota/test/expressserver');

 var quota = apigeeQuota.create(config.config);

 // Build an Express server using the code from the cache module
 var app = server(quota);

 app.listen(process.env.PORT || 9002);
github apigee / microgateway-plugins / quota / index.js View on Github external
if (prox.name !== 'edgemicro-auth' && prodObj[prox.name] === true) acc[prox.base_path] = true;
                return acc;
            }, basePaths);
        }

        if (config[productName].useRedis === true ) {
            debug('using redis quota');
            Quota = QuotaRedis;
        }
        
        prodObj.basePaths = basePaths;
        prodsObj[productName] = prodObj;

        config[productName].request = config.request;
        config[productName]['debug'] = debug;
        var quota = Quota.create(config[productName]);
        quotas[productName] = quota.connectMiddleware().apply(options);
        //
        quotaManagers[productName] = quota;
        debug('created quota for', productName);
    });

volos-quota-apigee

Apigee provider for Quota enforcement in the Volos system.

MIT
Latest version published 8 months ago

Package Health Score

59 / 100
Full package analysis

Popular volos-quota-apigee functions