hellogrpc 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 +4 -4
- data/lib/hellogrpc/hellogrpc_pb.rb +20 -0
- data/lib/hellogrpc/hellogrpc_services_pb.rb +38 -0
- data/lib/hellogrpc/version.rb +3 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccb43cd4182a00c41ea40c17a3e0a6eb92b49d7227e09119c95a0e7dd26eadb8
|
4
|
+
data.tar.gz: c664f9f2bda338a08da65c9204d12a7c0ccb82d6d838209426a5ecfbe57f1723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb489344a086ac67f3bbe9343bfc85c23c584c9e035731c1fc200dbc28b0681183e0916bf356c6c1fb14c2cd3ed7634bc14314a3bf8cc6e7a406865565f4262e
|
7
|
+
data.tar.gz: 35121086c01f55c2fba82ae5479405f2d748373fe6269c8317097df55061748b6d120c4635a7875f0c8df19ed4f9970316e286d3f2f527942fc7c97638e02966
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: hellogrpc.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("hellogrpc.proto", :syntax => :proto3) do
|
8
|
+
add_message "hellogrpc.HelloRequest" do
|
9
|
+
optional :name, :string, 1
|
10
|
+
end
|
11
|
+
add_message "hellogrpc.HelloReply" do
|
12
|
+
optional :message, :string, 1
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Hellogrpc
|
18
|
+
HelloRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hellogrpc.HelloRequest").msgclass
|
19
|
+
HelloReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hellogrpc.HelloReply").msgclass
|
20
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: hellogrpc.proto for package 'hellogrpc'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2015 gRPC authors.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
|
21
|
+
module Hellogrpc
|
22
|
+
module Greeter
|
23
|
+
# The greeting service definition.
|
24
|
+
class Service
|
25
|
+
|
26
|
+
include GRPC::GenericService
|
27
|
+
|
28
|
+
self.marshal_class_method = :encode
|
29
|
+
self.unmarshal_class_method = :decode
|
30
|
+
self.service_name = 'hellogrpc.Greeter'
|
31
|
+
|
32
|
+
# Sends a greeting
|
33
|
+
rpc :SayHello, HelloRequest, HelloReply
|
34
|
+
end
|
35
|
+
|
36
|
+
Stub = Service.rpc_stub_class
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hellogrpc
|
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
|
- Kyle Conroy
|
@@ -38,6 +38,9 @@ extensions: []
|
|
38
38
|
extra_rdoc_files: []
|
39
39
|
files:
|
40
40
|
- lib/hellogrpc.rb
|
41
|
+
- lib/hellogrpc/hellogrpc_pb.rb
|
42
|
+
- lib/hellogrpc/hellogrpc_services_pb.rb
|
43
|
+
- lib/hellogrpc/version.rb
|
41
44
|
homepage: https://github.com/stackmachine/hellogrpc
|
42
45
|
licenses:
|
43
46
|
- MIT
|