onirii
Version:
Universal queue SDK
34 lines (33 loc) • 867 B
TypeScript
import { Options } from 'amqplib/properties';
/**
* Amqp Channel namespace
*
* @since 1.3.0
* @date 2021-06-30
* @author Luminous(BGLuminous)
*/
export declare namespace AmqpChannelNamespace {
interface MetaConfigure {
exchangeList?: AmqpExchange[];
queueList?: AmqpQueue[];
bindList?: AmqpBind[];
}
interface AmqpExchange {
name: string;
type: 'direct' | 'topic' | 'headers' | 'fanout' | 'match' | string;
options?: Options.AssertExchange;
cleanOption?: Options.DeleteExchange;
}
interface AmqpQueue {
name: string;
options?: Options.AssertQueue;
cleanOption?: Options.DeleteQueue;
}
interface AmqpBind {
type: 'qte' | 'ete';
fromSourceName: string;
targetSourceName: string;
key: string;
options?: any;
}
}