Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
October 11, 2018 gRPC for D is released. | ||||
---|---|---|---|---|
| ||||
hunt-grpc is Grpc for D programming language, hunt-http library based. example server code: import helloworld.helloworld; import helloworld.helloworldrpc; import grpc; class GreeterImpl : GreeterBase { override HelloReply SayHello(HelloRequest request) { HelloReply reply = new HelloReply(); reply.message = "hello " ~ request.name; return reply; } } string host = "0.0.0.0"; ushort port = 50051; Server server = new Server(); server.listen(host , port); server.register( new GreeterImpl()); server.start(); example client code: import helloworld.helloworld; import helloworld.helloworldrpc; import grpc; auto channel = new Channel("127.0.0.1" , 50051); GreeterClient client = new GreeterClient(channel); HelloRequest request = new HelloRequest(); request.name = "test"; HelloReply reply = client.SayHello(request); build for library: dub build -v build for example: dub build -c=example -v hunt-grpc project: https://github.com/huntlabs/hunt-grpc |
October 11, 2018 Re: gRPC for D is released. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian | On Thursday, 11 October 2018 at 12:15:43 UTC, Brian wrote: > hunt-grpc is Grpc for D programming language, hunt-http library based. [...] > hunt-grpc project: > https://github.com/huntlabs/hunt-grpc Interesting! D might be a candidate for being added here later: https://grpc.io/ "go straight to Quick Start in the language of your choice:" |
October 11, 2018 Re: gRPC for D is released. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian | On Thursday, 11 October 2018 at 12:15:43 UTC, Brian wrote: > hunt-grpc is Grpc for D programming language, hunt-http library based. > > hunt-grpc project: > https://github.com/huntlabs/hunt-grpc Could you at least link to https://grpc.io/about/ so others know what this is? |
October 11, 2018 Re: gRPC for D is released. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian | Hi! I'm the community manager for gRPC and this is awesome! Would love to add this to our ecosystem repo. Would also be great to have you talk about this on an upcoming community call! |
October 11, 2018 Re: gRPC for D is released. | ||||
---|---|---|---|---|
| ||||
Posted in reply to April Nassi | On Thursday, 11 October 2018 at 16:19:07 UTC, April Nassi wrote:
> Hi! I'm the community manager for gRPC and this is awesome! Would love to add this to our ecosystem repo. Would also be great to have you talk about this on an upcoming community call!
That'll be nice.
|
October 12, 2018 Re: gRPC for D is released. | ||||
---|---|---|---|---|
| ||||
Posted in reply to April Nassi | On Thursday, 11 October 2018 at 16:19:07 UTC, April Nassi wrote:
> Hi! I'm the community manager for gRPC and this is awesome! Would love to add this to our ecosystem repo. Would also be great to have you talk about this on an upcoming community call!
Thanks,
e-mail: zoujiaqing@gmail.com
|
Copyright © 1999-2021 by the D Language Foundation