UNPKG

phecda-server

Version:

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

15 lines (12 loc) 522 B
import amqplib from 'amqplib'; import { F as Factory } from '../../core-D1YYphEn.mjs'; import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs'; import 'phecda-core'; import '../../meta-DNF6Fl27.mjs'; 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 };