grpc v0.5.0-beta GRPC.Service View Source
Define gRPC service used by Stub and Server. You should use Protobuf
to
to generate code instead of using this module directly.
It imports DSL functions like rpc/3
and stream/1
for defining the RPC
functions easily:
defmodule Greeter.Service do
use GRPC.Service, name: "helloworld.Greeter"
rpc :SayHello, HelloRequest, stream(HelloReply)
end
Link to this section Summary
Functions
Specify if the request/reply is streaming.
Link to this section Functions
Link to this function
grpc_type(arg) View Source
Link to this macro
rpc(name, request, reply) View Source (macro)
Link to this function
stream(param) View Source
Specify if the request/reply is streaming.