GRPC.Client.Interceptor behaviour (gRPC v0.11.5)

View Source

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

Summary

Types

next()

@type next() :: (GRPC.Client.Stream.t(), req() -> GRPC.Stub.rpc_return())

options()

@type options() :: any()

req()

@type req() :: struct() | nil

Callbacks

call(stream, req, next, options)

@callback call(stream :: GRPC.Client.Stream.t(), req(), next(), options()) ::
  GRPC.Stub.rpc_return()

init(options)

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