Skip to content

Instantly share code, notes, and snippets.

@autodidaddict
Created August 6, 2018 12:13
Show Gist options
  • Save autodidaddict/db8506354b76d6850842b5f7f3dab729 to your computer and use it in GitHub Desktop.
Save autodidaddict/db8506354b76d6850842b5f7f3dab729 to your computer and use it in GitHub Desktop.
Updated drone management service with Docker annotations
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