mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-12-27 04:09:45 +01:00
e4a28e9e4b
* remove parent ptr from unregistered calls -- unneeded * begin unregistered high level server loop * undo changes to highlevel server, add mkConfig for unregistered server * move call CQ create/destroy into call create/destroy * async normal call function * preliminary unregistered server loop for non-streaming methods * working unregistered highlevel example * loop counters for benchmarking * changes for benchmarking, add ruby example server for benchmarking * async version of withCall, refactor unregistered server loop to handle all method types * unregistered client streaming * add remaining streaming modes * unregistered server streaming test * unregistered streaming tests * add error logging * fix bug in add example * remove old TODOs * fix bug: don't assume slices are null-terminated * add TODO re: unregistered client streaming functions
40 lines
817 B
Ruby
40 lines
817 B
Ruby
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# Source: echo.proto for package 'echo'
|
|
|
|
require 'grpc'
|
|
require 'echo'
|
|
|
|
module Echo
|
|
module Echo
|
|
|
|
# TODO: add proto service documentation here
|
|
class Service
|
|
|
|
include GRPC::GenericService
|
|
|
|
self.marshal_class_method = :encode
|
|
self.unmarshal_class_method = :decode
|
|
self.service_name = 'echo.Echo'
|
|
|
|
rpc :DoEcho, EchoRequest, EchoRequest
|
|
end
|
|
|
|
Stub = Service.rpc_stub_class
|
|
end
|
|
module Add
|
|
|
|
# TODO: add proto service documentation here
|
|
class Service
|
|
|
|
include GRPC::GenericService
|
|
|
|
self.marshal_class_method = :encode
|
|
self.unmarshal_class_method = :decode
|
|
self.service_name = 'echo.Add'
|
|
|
|
rpc :DoAdd, AddRequest, AddResponse
|
|
end
|
|
|
|
Stub = Service.rpc_stub_class
|
|
end
|
|
end
|