grpc_server_template 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a06cb87622a9e7948594b7e733827b3841febd2167f45fd5e7414c90a0190d2
|
4
|
+
data.tar.gz: 13682df932e694070cc4a8851a34dcebcf3962a66716fc72bdc6bee7042c3655
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf1e25c798dfb2c1cf247b8959d0d22066435b638a22efa90ad4e77723ca496b96993d88afbfc525e81e54134eb7079a925097580a04ea99156bbde207905dc
|
7
|
+
data.tar.gz: 9227410fbeb00ab4c185c6fee8f16406bd7278e3a5772778304425e225b331d55e40e8c045e47e1926028a280f2fe08eef7b34efc7a1c51ddc2f5bbd1e41d8a7
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,8 @@ module GrpcServerTemplate
|
|
11
11
|
stub = GrpcServerTemplate::Stub.new("0.0.0.0:50052", :this_channel_is_insecure)
|
12
12
|
req = GrpcServerTemplate::Messages::HelloRequest.new(name: name)
|
13
13
|
resp_obj = stub.say_hello(req)
|
14
|
-
puts "Response: #{resp_obj}"
|
14
|
+
puts "> Response: #{resp_obj}"
|
15
|
+
resp_obj
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
@@ -7,7 +7,7 @@ module GrpcServerTemplate
|
|
7
7
|
# Handler
|
8
8
|
class Handler < GrpcServerTemplate::Service
|
9
9
|
def say_hello(hello_req, _unused_call)
|
10
|
-
puts "Request: #{hello_req}"
|
10
|
+
puts "> Request: #{hello_req}"
|
11
11
|
GrpcServerTemplate::Messages::HelloReply.new(message: "Hello #{hello_req.name}")
|
12
12
|
end
|
13
13
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
require "google/protobuf"
|
7
7
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
-
add_file("grpc_server_template.proto", :
|
9
|
+
add_file("grpc_server_template.proto", syntax: :proto3) do
|
10
10
|
add_message "HelloRequest" do
|
11
11
|
optional :name, :string, 1
|
12
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc_server_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvance
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A template for the ruby grpc server.
|
14
14
|
email:
|