百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

grpc_kit

> 开发工具
开源

用于在 Ruby 中创建 gRPC 服务器/客户端的工具包。

160 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

用于在 Ruby 中创建 gRPC 服务器/客户端的工具包。

GrpcKit

A kit for creating gRPC server/client in Ruby.

Installation

Add this line to your application's Gemfile:

ruby
gem 'grpc_kit'

And then execute:

$ bundle

Or install it yourself as:

$ gem install grpc_kit

Usage

More Details in examples directory.

Server
ruby
sock = TCPServer.new(50051)
server = GrpcKit::Server.new
server.handle(GreeterServer.new)

loop do
  conn = sock.accept
  server.run(conn)
end
Client
ruby
sock = TCPSocket.new('localhost', 50051)
stub = Helloworld::Greeter::Stub.new(sock)
message = stub.say_hello(Helloworld::HelloRequest.new(name: 'your name')).message
puts message

Development

$ bundle install

Projects using grpc_kit

  • griffin Multi process gRPC server in Ruby

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cookpad/grpc_kit.

License

The gem is available as open source under the terms of the MIT License.

Issues· 4 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubygrpcgrpc-clientgrpc-rubygrpc-server

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具