Skip to content

Instantly share code, notes, and snippets.

@daneshk
Last active February 12, 2018 11:32
Show Gist options
  • Save daneshk/6f3f2c13e174f1f8f6a7247d786428bc to your computer and use it in GitHub Desktop.
Save daneshk/6f3f2c13e174f1f8f6a7247d786428bc to your computer and use it in GitHub Desktop.
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