Created
July 27, 2018 18:31
-
-
Save autodidaddict/2f0872f580724034afda2f09f8bd9502 to your computer and use it in GitHub Desktop.
gRPC Ballerina Blog Posts - 1
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
import ballerina/grpc; | |
import ballerina/log; | |
endpoint grpc:Listener listener { | |
host: "localhost", | |
port: 9090, | |
}; | |
map <DroneInfo> dronesMap; | |
type DroneInfo record { | |
string id; | |
string name; | |
int battery_remaining; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment