View Source GRPC.ServerInterceptor behaviour (grpc v0.8.1)

This behaviour is deprecated. Use `GRPC.Server.Interceptor` instead.

Interceptor on server side. See GRPC.Endpoint.

Summary

Types

@type options() :: any()
@type rpc_return() ::
  {:ok, GRPC.Server.Stream.t(), struct()}
  | {:ok, GRPC.Server.Stream.t()}
  | {:error, GRPC.RPCError.t()}

Callbacks

Link to this callback

call(rpc_req, stream, next, options)

View Source
@callback call(GRPC.Server.rpc_req(), stream :: GRPC.Server.Stream.t(), next(), options()) ::
  rpc_return()
@callback init(options()) :: options()