forked from nestjs/nest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver-grpc.d.ts
More file actions
23 lines (23 loc) · 1.04 KB
/
Copy pathserver-grpc.d.ts
File metadata and controls
23 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { CustomTransportStrategy } from '../interfaces';
import { MicroserviceOptions } from '../interfaces/microservice-configuration.interface';
import { Server } from './server';
export declare class ServerGrpc extends Server implements CustomTransportStrategy {
private readonly options;
private readonly url;
private grpcClient;
constructor(options: MicroserviceOptions['options']);
listen(callback: () => void): Promise<void>;
start(callback?: () => void): Promise<void>;
bindEvents(): Promise<void>;
getServiceNames(grpcPkg: any): string[];
createService(grpcService: any, name: string): Promise<{}>;
createPattern(service: string, methodName: string): string;
createServiceMethod(methodHandler: Function, protoNativeHandler: any): Function;
createUnaryServiceMethod(methodHandler: any): Function;
createStreamServiceMethod(methodHandler: any): Function;
close(): void;
deserialize(obj: any): any;
createClient(): any;
lookupPackage(root: any, packageName: string): any;
loadProto(): any;
}