UNPKG

phecda-server

Version:

server framework that provide IOC/type-reuse/http&rpc-adaptor

15 lines (12 loc) 519 B
import amqplib from 'amqplib'; import { F as Factory } from '../../core-qL97H3d_.js'; import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js'; import 'phecda-core'; import '../../meta-EGS-4cNY.js'; interface RabbitmqCtx extends RpcCtx { type: 'rabbitmq'; ch: amqplib.Channel; msg: amqplib.ConsumeMessage; } declare function bind(ch: amqplib.Channel, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, opts?: RpcServerOptions): Promise<void>; export { type RabbitmqCtx, bind };