View Source GRPC.ServerInterceptor behaviour (grpc v0.9.0)
This behaviour is deprecated. Use `GRPC.Server.Interceptor` instead.
Interceptor on server side. See GRPC.Endpoint
.
Summary
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()}
Callbacks
@callback call(GRPC.Server.rpc_req(), stream :: GRPC.Server.Stream.t(), next(), options()) :: rpc_return()