Created
August 6, 2018 12:13
-
-
Save autodidaddict/db8506354b76d6850842b5f7f3dab729 to your computer and use it in GitHub Desktop.
Updated drone management service with Docker annotations
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; | |
import ballerinax/docker; | |
@docker:Expose {} | |
endpoint grpc:Listener listener { | |
host: "localhost", | |
port: 9090 | |
}; | |
endpoint StatusQueryBlockingClient statusQueryBlockingEp { | |
url:"http://localhost:9091" | |
}; | |
map <DroneInfo> dronesMap; | |
type DroneInfo record { | |
string id; | |
string name; | |
string description; | |
}; | |
type DroneDetails record { | |
DroneInfo info; | |
float latitude; | |
float longitude; | |
float altitude; | |
float battery_remaining; | |
}; | |
@docker:Config { | |
registry: "index.docker.io/kotancode", | |
name:"dronemgmt", | |
tag: "v1.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment