The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
24 lines
522 B
24 lines
522 B
# Generated by the protocol buffer compiler. DO NOT EDIT! |
|
# Source: helloworld.proto for package 'helloworld' |
|
|
|
require 'grpc' |
|
require 'helloworld' |
|
|
|
module Helloworld |
|
module Greeter |
|
|
|
# TODO: add proto service documentation here |
|
class Service |
|
|
|
include GRPC::GenericService |
|
|
|
self.marshal_class_method = :encode |
|
self.unmarshal_class_method = :decode |
|
self.service_name = 'helloworld.Greeter' |
|
|
|
rpc :SayHello, HelloRequest, HelloReply |
|
end |
|
|
|
Stub = Service.rpc_stub_class |
|
end |
|
end
|
|
|