UNPKG

sdg-rpc

Version:

pomelo ts rpc

27 lines (26 loc) 564 B
import { IAcceptorOpts } from './IAcceptor'; export interface IPath { path: string; namespace: string; serverType: string; } export interface IServices { [key: string]: IService; } export interface IService { [key: string]: Function; } export interface IFactory { [key: string]: Function; } export interface IRpcServerOpts extends IAcceptorOpts { port?: number; paths?: IPath[]; context?: any; services?: IServices; acceptorFactory?: IFactory; } export interface IAcceptor { listen: Function; close: Function; }