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