grpc v0.5.0-beta.1 GRPC.Server.Stream View Source

A struct as an argument that servers get in rpc function definitions and use to handle headers, send streaming replies.

Notice that you MUST use new stream returned by GRPC.Server as an argument to invoke next functions defined by GRPC.Server.

Fields

  • :server - user defined gRPC server module
  • :adapter - a server adapter module, like GRPC.Adapter.Cowboy
  • request_mod - the request module, or nil for untyped protocols
  • response_mod - the response module, or nil for untyped protocols
  • :codec - the codec
  • :payload - the payload needed by the adapter
  • :local - local data initialized by user

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %GRPC.Server.Stream{
  __interface__: map(),
  adapter: atom(),
  codec: atom(),
  compressor: module() | nil,
  endpoint: atom(),
  grpc_type: atom(),
  local: any(),
  method_name: String.t(),
  payload: any(),
  request_mod: atom(),
  response_mod: atom(),
  rpc: tuple(),
  server: atom(),
  service_name: String.t()
}

Link to this section Functions

Link to this function

send_reply(stream, reply, opts)

View Source