1 | import { Transport } from '../enums';
|
2 | import { PatternMetadata } from '../interfaces/pattern-metadata.interface';
|
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 |
|
12 |
|
13 | export declare const MessagePattern: {
|
14 | <T = PatternMetadata | string>(metadata?: T): MethodDecorator;
|
15 | <T = PatternMetadata | string>(metadata?: T, transport?: Transport | symbol): MethodDecorator;
|
16 | <T = PatternMetadata | string>(metadata?: T, extras?: Record<string, any>): MethodDecorator;
|
17 | <T = PatternMetadata | string>(metadata?: T, transport?: Transport | symbol, extras?: Record<string, any>): MethodDecorator;
|
18 | };
|
19 |
|
20 |
|
21 |
|
22 | export declare function GrpcMethod(service?: string): MethodDecorator;
|
23 | export declare function GrpcMethod(service: string, method?: string): MethodDecorator;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare function GrpcStreamMethod(service?: string): MethodDecorator;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare function GrpcStreamMethod(service: string, method?: string): MethodDecorator;
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | export declare function GrpcStreamCall(service?: string): MethodDecorator;
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export declare function GrpcStreamCall(service: string, method?: string): MethodDecorator;
|
46 | export declare function createGrpcMethodMetadata(target: object, key: string | symbol, service: string | undefined, method: string | undefined, streaming?: GrpcMethodStreamingType): {
|
47 | service: string;
|
48 | rpc: string;
|
49 | streaming: GrpcMethodStreamingType;
|
50 | };
|