View Source GRPC.ServerInterceptor behaviour (grpc v0.5.0)
Interceptor on server side. See GRPC.Endpoint
.
Link to this section Summary
Link to this section Types
@type next() :: (GRPC.Server.rpc_req(), GRPC.Server.Stream.t() -> rpc_return())
@type options() :: any()
@type rpc_return() :: {:ok, GRPC.Server.Stream.t(), struct()} | {:ok, GRPC.Server.Stream.t()} | {:error, GRPC.RPCError.t()}
Link to this section Callbacks
@callback call(GRPC.Server.rpc_req(), stream :: GRPC.Server.Stream.t(), next(), options()) :: rpc_return()