* Will create a string of a JSON serialized format * * @param service name of the service which should be a match to gRPC service definition name * @param methodName name of the method which is coming after rpc keyword * @param streaming GrpcMethodStreamingType parameter which should cor
(
service: string,
methodName: string,
streaming: GrpcMethodStreamingType,
)
| 247 | * stream keyword in gRPC service request part |
| 248 | */ |
| 249 | public createPattern( |
| 250 | service: string, |
| 251 | methodName: string, |
| 252 | streaming: GrpcMethodStreamingType, |
| 253 | ): string { |
| 254 | return JSON.stringify({ |
| 255 | service, |
| 256 | rpc: methodName, |
| 257 | streaming, |
| 258 | }); |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * Will return async function which will handle gRPC call |
no outgoing calls
no test coverage detected