GRPC.ClientInterceptor behaviour (gRPC Client v1.0.4)

Copy Markdown View Source
This behaviour is deprecated. Use `GRPC.Client.Interceptor` instead.

Interceptor on client side. See GRPC.Stub.connect/2.

Summary

Callbacks

call(stream, req, next, options)

@callback call(
  stream :: GRPC.Client.Stream.t(),
  req :: struct() | nil,
  next :: (GRPC.Client.Stream.t(), req :: struct() | nil ->
             GRPC.Stub.rpc_return()),
  options :: any()
) :: GRPC.Stub.rpc_return()

init(options)

@callback init(options :: any()) :: options :: any()