1 | import { PatternMetadata } from '../interfaces/pattern-metadata.interface';
|
2 | import { Transport } from '../enums';
|
3 | export declare enum GrpcMethodStreamingType {
|
4 | NO_STREAMING = "no_stream",
|
5 | RX_STREAMING = "rx_stream",
|
6 | PT_STREAMING = "pt_stream"
|
7 | }
|
8 |
|
9 |
|
10 |
|
11 | export declare const MessagePattern: <T = PatternMetadata>(metadata?: T, transport?: Transport) => MethodDecorator;
|
12 |
|
13 |
|
14 |
|
15 | export declare function GrpcMethod(service?: string): MethodDecorator;
|
16 | export declare function GrpcMethod(service: string, method?: string): MethodDecorator;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare function GrpcStreamMethod(service?: string): MethodDecorator;
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare function GrpcStreamMethod(service: string, method?: string): MethodDecorator;
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function GrpcStreamCall(service?: string): MethodDecorator;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | export declare function GrpcStreamCall(service: string, method?: string): MethodDecorator;
|
39 | export declare function createGrpcMethodMetadata(target: object, key: string | symbol, service: string | undefined, method: string | undefined, streaming?: GrpcMethodStreamingType): {
|
40 | service: string;
|
41 | rpc: string;
|
42 | streaming: GrpcMethodStreamingType;
|
43 | };
|