grpc-server-ts
Version:
a grpc server side module built by typescrpt
26 lines (25 loc) • 761 B
TypeScript
export declare class ServiceContainer {
static services: {
service: any;
target: Function;
}[];
static routes: {
target: Function;
route: Function;
func?: Function;
}[];
/**
* @description registry grpc service
* @author Xuezi
* @static
* @param {Function} target service constructor
* @param {string} path proto file path
* @memberof ServiceContainer
*/
static registryService(target: Function, path: string): void;
private static _setServiceClient;
static registryRoute(target: Function, route: Function): void;
static generateRouteFunc(...args: any[]): any;
private static _generateRouteFunc;
static getService(target: Function): any[];
}