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

Version Path
griffin-0.3.0 examples/helloworld_server.rb
griffin-0.2.4 examples/helloworld_server.rb
griffin-0.2.3 examples/helloworld_server.rb
griffin-0.2.2 examples/helloworld_server.rb
griffin-0.2.1 examples/helloworld_server.rb
griffin-0.2.0 examples/helloworld_server.rb
griffin-0.1.9 examples/helloworld_server.rb
griffin-0.1.8 examples/helloworld_server.rb
griffin-0.1.7 examples/helloworld_server.rb
griffin-0.1.6 examples/helloworld_server.rb
griffin-0.1.5 examples/helloworld_server.rb
griffin-0.1.4 examples/helloworld_server.rb
griffin-0.1.3 examples/helloworld_server.rb
griffin-0.1.2 examples/helloworld_server.rb
griffin-0.1.1 examples/helloworld_server.rb