Skip to content

Instantly share code, notes, and snippets.

@daneshk
Last active August 18, 2021 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daneshk/9addee709809cc017c8ff0a6816111e5 to your computer and use it in GitHub Desktop.
Save daneshk/9addee709809cc017c8ff0a6816111e5 to your computer and use it in GitHub Desktop.
service "RouteGuide" on new grpc:Listener(8980) {
remote function GetFeature(Point point) returns Feature|error {
foreach Feature feature in FEATURES {
if feature.location == point {
return feature;
}
}
return {location: point, name: ""};
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment