grpc v0.3.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
  • :marshal - a function encoding the reply
  • :unmarshal - a function decoding the request
  • :adapter - a server adapter module, like GRPC.Adapter.Cowboy
  • :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{
  adapter: atom(),
  local: any(),
  marshal: marshal(),
  payload: any(),
  server: atom(),
  unmarshal: unmarshal()
}