Sha256: f1a5a56d21515c925d39e8fa0c64953b612a867161cdbaaff5f0f9a5b6b11f50
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
require_relative '../proto/sum_pb' module <%= @class_name %> # Example MicroRb handler class ExampleHandler include MicroRb::Handler include <%= @class_name %>::SumHandler handler name: :example, metadata: { hello: 'Micro-Rb' }, rpc_method: :sum def sum(request: Request.new, response: Response.new) response.total = request.a + request.b response end end end
Version data entries
3 entries across 3 versions & 1 rubygems