Sha256: 67e18ddb92b0252728c2091d0afd30703c3766c112e52dba0b56de978757e353
Contents?: true
Size: 1.12 KB
Versions: 7
Compression:
Stored size: 1.12 KB
Contents
# Griffin [](https://badge.fury.io/rb/griffin) __UNDER DEVELOPMENT__ Griffin is [gRPC](https://grpc.io/) server which supports multi process by using [serverengine](https://github.com/treasure-data/serverengine). Griffin also supports building gRPC client. ## Installation Add this line to your application's Gemfile: ```ruby gem 'griffin' ``` And then execute: ``` $ bundle ``` Or install it yourself as: ``` gem install griffin ``` ## Usage #### Server ```ruby 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 c.worker 2 # A number of worker process end Griffin::Server.run ``` ## Development ``` bundle install ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/ganmacs/griffin. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
griffin-0.2.3 | README.md |
griffin-0.2.2 | README.md |
griffin-0.2.1 | README.md |
griffin-0.2.0 | README.md |
griffin-0.1.9 | README.md |
griffin-0.1.8 | README.md |
griffin-0.1.7 | README.md |