Last active
February 12, 2018 11:32
-
-
Save daneshk/6f3f2c13e174f1f8f6a7247d786428bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ballerinalang.net.grpc.helloworld; | |
import ballerina.net.grpc; | |
service<grpc> helloWorld { | |
resource hello (HelloRequest req, HelloResponse res) { | |
println(req.name); | |
res.message = "First Hurray " + req.name; | |
} | |
} | |
struct HelloRequest { | |
string name; | |
} | |
struct HelloResponse { | |
string message; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment