Sha256: d63d82a8a5b6a684b3726a44f04329ac74afbb68f913bf95f2f0eb25678b1813
Contents?: true
Size: 442 Bytes
Versions: 15
Compression:
Stored size: 442 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path('./examples/helloworld') require 'griffin' require 'helloworld_services_pb' class GreeterServer < Helloworld::Greeter::Service def say_hello(hello_req, _unused_call) Helloworld::HelloReply.new(message: "Hello #{hello_req.name}") end end Griffin::Server.configure do |c| c.bind '127.0.0.1' c.port 50051 c.services GreeterServer.new end Griffin::Server.run
Version data entries
15 entries across 15 versions & 1 rubygems