Global

Methods


CancelRequester(next)

Parameters:
Name Type Description
next function

Calls the next interceptor.


CloseRequester(next)

Parameters:
Name Type Description
next function

Calls the next interceptor.


createStatusError(status)

Create an Error object from a status object

Parameters:
Name Type Description
status grpc~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
client grpc.Client
Returns:
Type
Object.<string, Array.<Interceptor>>

getMethodType(method_definition)

Get a method's type from its definition

Parameters:
Name Type Description
method_definition grpc~MethodDefinition
Returns:
Type
number

GetPeerRequester(next)

Parameters:
Name Type Description
next function

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
options object

The grpc call options

nextCall NextCall
Returns:
Type
InterceptingCall

InterceptorProvider(method_definition)

A function for dynamically assigning an interceptor to a call.

Parameters:
Name Type Description
method_definition grpc~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
packageDef

grpc~PackageDefinition The package definition object

Returns:

The resulting gRPC object

Type
Object.<string, *>

MessageListener(message, next)

Parameters:
Name Type Description
message jspb.Message

The response message.

next function

Passes a message to the next interceptor.


MessageRequester(message, next)

Parameters:
Name Type Description
message jspb.Message

The request message.

next function

Passes a message to the next interceptor.


MetadataListener(metadata, next)

Parameters:
Name Type Description
metadata grpc.Metadata

The response metadata.

next function

Passes metadata to the next interceptor.


MetadataRequester(metadata, listener, next)

Parameters:
Name Type Description
metadata grpc.Metadata

The request metadata.

listener grpc~Listener

A listener wired to the previous layers in the interceptor stack.

next function

Passes metadata and a listener to the next interceptor.


NextCall(options)

A function which produces the next InterceptingCall.

Parameters:
Name Type Description
options object

The grpc call options

Returns:
Type
InterceptingCall | null

StatusListener(status, next)

Parameters:
Name Type Description
status grpc~StatusObject

The response status.

next function

Passes a status to the next interceptor.