phecda-server
Version:
server framework that provide IOC/type-reuse/http&rpc-adaptor
19 lines (16 loc) • 530 B
text/typescript
import Redis from 'ioredis';
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 RedisCtx extends RpcCtx {
type: 'redis';
redis: Redis;
msg: string;
channel: string;
}
declare function bind({ sub, pub }: {
sub: Redis;
pub: Redis;
}, { moduleMap, meta }: Awaited<ReturnType<typeof Factory>>, opts?: RpcServerOptions): void;
export { type RedisCtx, bind };