Methods
-
CancelRequester(next)
-
Parameters:
Name Type Description nextfunction Calls the next interceptor.
-
CloseRequester(next)
-
Parameters:
Name Type Description nextfunction Calls the next interceptor.
-
createStatusError(status)
-
Create an Error object from a status object
Parameters:
Name Type Description statusgrpc~StatusObject The status object
Returns:
The resulting Error
- Type
- Error
-
getClientInterceptors(client)
-
Gets a map of client method names to interceptor stacks.
Parameters:
Name Type Description clientgrpc.Client Returns:
- Type
- Object.<string, Array.<Interceptor>>
-
getMethodType(method_definition)
-
Get a method's type from its definition
Parameters:
Name Type Description method_definitiongrpc~MethodDefinition Returns:
- Type
- number
-
GetPeerRequester(next)
-
Parameters:
Name Type Description nextfunction Calls the next interceptor.
Returns:
- Type
- string
-
Interceptor(options, nextCall)
-
A function which can modify call options and produce methods to intercept RPC operations.
Parameters:
Name Type Description optionsobject The grpc call options
nextCallNextCall Returns:
- Type
- InterceptingCall
-
InterceptorProvider(method_definition)
-
A function for dynamically assigning an interceptor to a call.
Parameters:
Name Type Description method_definitiongrpc~MethodDefinition The method to provide an interceptor for.
Returns:
The interceptor to provide or nothing
- Type
- Interceptor | null
-
loadPackageDefinition(packageDef)
-
Load a gRPC package definition as a gRPC object hierarchy
Parameters:
Name Type Description packageDefgrpc~PackageDefinition The package definition object
Returns:
The resulting gRPC object
- Type
- Object.<string, *>
-
MessageListener(message, next)
-
Parameters:
Name Type Description messagejspb.Message The response message.
nextfunction Passes a message to the next interceptor.
-
MessageRequester(message, next)
-
Parameters:
Name Type Description messagejspb.Message The request message.
nextfunction Passes a message to the next interceptor.
-
MetadataListener(metadata, next)
-
Parameters:
Name Type Description metadatagrpc.Metadata The response metadata.
nextfunction Passes metadata to the next interceptor.
-
MetadataRequester(metadata, listener, next)
-
Parameters:
Name Type Description metadatagrpc.Metadata The request metadata.
listenergrpc~Listener A listener wired to the previous layers in the interceptor stack.
nextfunction Passes metadata and a listener to the next interceptor.
-
NextCall(options)
-
A function which produces the next InterceptingCall.
Parameters:
Name Type Description optionsobject The grpc call options
Returns:
- Type
- InterceptingCall | null
-
StatusListener(status, next)
-
Parameters:
Name Type Description statusgrpc~StatusObject The response status.
nextfunction Passes a status to the next interceptor.