vulcain-corejs
Version:
Vulcain micro-service framework
69 lines (68 loc) • 2.28 kB
TypeScript
/**
* Conventions values
* You can override this values before instanciating application
*
* @export
* @class Conventions
*/
export declare class Conventions {
private static _instance;
static deepAssign(from: any, target: any): void;
static instance: Conventions;
/**
* Default api source files
*
*/
defaultApplicationFolder: string;
defaultModelsFolderPattern: string;
defaultHandlersFolderPattern: string;
defaultServicesFolderPattern: string;
defaultHystrixPath: string;
defaultUrlprefix: string;
defaultRabbitAddress: string;
defaultMongoAddress: string;
defaultStatsdAddress: string;
defaultStatsdDelayInMs: number;
defaultVulcainServerName: string;
vulcainFileName: string;
secretKeyPropertyName: string;
defaultSecretKey: string;
defaultTokenExpiration: string;
/**
* Environment variable for rabbit server address
*
*/
ENV_TOKEN_ISSUER: string;
ENV_TOKEN_EXPIRATION: string;
ENV_VULCAIN_TENANT: string;
/**
* Api key to get config from vulcain server
*
*
* @memberOf Conventions
*/
ENV_VULCAIN_TOKEN: string;
ENV_VULCAIN_ENV: string;
ENV_VULCAIN_DOMAIN: string;
ENV_VULCAIN_SERVER: string;
ENV_SERVICE_NAME: string;
ENV_SERVICE_VERSION: string;
ENV_VULCAIN_TEST: string;
ENV_VULCAIN_SECRET_KEY: string;
hystrix: {
"hystrix.health.snapshot.validityInMilliseconds": number;
"hystrix.force.circuit.open": boolean;
"hystrix.force.circuit.closed": boolean;
"hystrix.circuit.enabled": boolean;
"hystrix.circuit.sleepWindowInMilliseconds": number;
"hystrix.circuit.errorThresholdPercentage": number;
"hystrix.circuit.volumeThreshold": number;
"hystrix.execution.timeoutInMilliseconds": number;
"hystrix.metrics.statistical.window.timeInMilliseconds": number;
"hystrix.metrics.statistical.window.bucketsNumber": number;
"hystrix.metrics.percentile.window.timeInMilliseconds": number;
"hystrix.metrics.percentile.window.bucketsNumber": number;
"hystrix.isolation.semaphore.maxConcurrentRequests": number;
"hystrix.fallback.semaphore.maxConcurrentRequests": number;
};
}