GRPC PHP  1.62.0
Public Member Functions | Static Public Member Functions
Grpc\Interceptor Class Reference

Represents an interceptor that intercept RPC invocations before call starts. More...

Public Member Functions

 interceptUnaryUnary ( $method, $argument, $deserialize, $continuation, array $metadata=[], array $options=[])
 
 interceptStreamUnary ( $method, $deserialize, $continuation, array $metadata=[], array $options=[])
 
 interceptUnaryStream ( $method, $argument, $deserialize, $continuation, array $metadata=[], array $options=[])
 
 interceptStreamStream ( $method, $deserialize, $continuation, array $metadata=[], array $options=[])
 

Static Public Member Functions

static intercept ($channel, $interceptors)
 Intercept the methods with Channel. More...
 

Detailed Description

Represents an interceptor that intercept RPC invocations before call starts.

There is one proposal related to the argument $deserialize under the review. The proposal link is https://github.com/grpc/proposal/pull/86.

Member Function Documentation

◆ intercept()

static Grpc\Interceptor::intercept (   $channel,
  $interceptors 
)
static

Intercept the methods with Channel.

Parameters
Channel | InterceptorChannel$channelAn already created Channel or InterceptorChannel object (optional)
Interceptor | Interceptor[]$interceptorsinterceptors to be added
Returns
InterceptorChannel

◆ interceptStreamStream()

Grpc\Interceptor::interceptStreamStream (   $method,
  $deserialize,
  $continuation,
array  $metadata = [],
array  $options = [] 
)

◆ interceptStreamUnary()

Grpc\Interceptor::interceptStreamUnary (   $method,
  $deserialize,
  $continuation,
array  $metadata = [],
array  $options = [] 
)

◆ interceptUnaryStream()

Grpc\Interceptor::interceptUnaryStream (   $method,
  $argument,
  $deserialize,
  $continuation,
array  $metadata = [],
array  $options = [] 
)

◆ interceptUnaryUnary()

Grpc\Interceptor::interceptUnaryUnary (   $method,
  $argument,
  $deserialize,
  $continuation,
array  $metadata = [],
array  $options = [] 
)

The documentation for this class was generated from the following file: