Created
February 8, 2019 02:02
-
-
Save tonyyang-svail/3e6311b4496283d9ec4bc7ac79daf14e to your computer and use it in GitHub Desktop.
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
syntax = "proto3"; | |
import "google/protobuf/any.proto"; | |
package server; | |
service SQLFlow { | |
rpc File (Request) returns (Job); | |
rpc ReadRow(Job) returns (stream Row); | |
rpc ReadLog(Job) returns (stream Log); | |
} | |
message Request { | |
string sql = 1; | |
} | |
message Job { | |
int32 id = 1; | |
} | |
message Log { | |
string log = 1; | |
} | |
// A row of data. Data can be any type | |
message Row { | |
repeated google.protobuf.Any data = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment