@team-supercharge/nest-amqp
Version:
AMQP 1.0 module for Nest framework
26 lines (25 loc) • 787 B
TypeScript
import { AMQPConnectionOptions } from '../../interface';
export declare class AMQConnectionOptionsStorage {
/**
* Add Queue Module Options to storage for connection
*
* @param {string} name Name of the connection, will be used as key
* @param {Options} options The options object
*/
static add(name: string, options: AMQPConnectionOptions): void;
/**
* Retreive stored from storage for connection
*
* @param {string} name Name of the connection
*
* @returns {Options | null} The stored connection or null
*/
static get(name: string): AMQPConnectionOptions | null;
/**
* Get all connection keys
*
* @returns {string[]}
*/
static getKeys(): string[];
private static readonly storage;
}