View Source GRPC.Server.Adapter behaviour (grpc v0.5.0)

HTTP server adapter for GRPC.

Link to this section Summary

Link to this section Callbacks

Link to this callback

send_headers(state, map)

View Source
@callback send_headers(GRPC.Server.Adapters.Cowboy.Handler.state(), map()) :: any()
Link to this callback

send_reply(state, binary, t)

View Source
@callback send_reply(GRPC.Server.Adapters.Cowboy.Handler.state(), binary(), Keyword.t()) ::
  any()
Link to this callback

start(atom, map, non_neg_integer, t)

View Source
@callback start(
  atom(),
  %{required(String.t()) => [module()]},
  non_neg_integer(),
  Keyword.t()
) ::
  {atom(), any(), non_neg_integer()}
@callback stop(atom(), %{required(String.t()) => [module()]}) ::
  :ok | {:error, :not_found}