Skip to content

Instantly share code, notes, and snippets.

@brunoluiz
Last active November 13, 2019 20:23
Show Gist options
  • Save brunoluiz/1133612f2e3e666d208c93ac12cc0e88 to your computer and use it in GitHub Desktop.
Save brunoluiz/1133612f2e3e666d208c93ac12cc0e88 to your computer and use it in GitHub Desktop.
gists-for-protos-post
syntax = "proto3";
service SnapshotService {
rpc CreateSnapshot (CreateSnapshotRequest) returns (CreateSnapshotResponse);
}
message CreateSnapshotRequest {
string url = 1;
}
enum SnapshotStatus {
UNKNOWN = 0;
IN_PROGRESS = 1;
DONE = 2;
}
message CreateSnapshotResponse {
string id = 1;
string out_url = 2;
SnapshotStatus status = 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment