31 lines
412 B
Protocol Buffer
31 lines
412 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package datafortress;
|
|
|
|
message SchemaEntry {
|
|
enum Type {
|
|
STRING = 0;
|
|
INT = 1;
|
|
}
|
|
Type type = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
// Indicates a command
|
|
message Command {
|
|
enum Type {
|
|
UNUSED = 0;
|
|
STATUS = 1;
|
|
SCHEMA_READ = 2;
|
|
SCHEMA_WRITE = 3;
|
|
QUERY = 4;
|
|
WRITE = 5;
|
|
}
|
|
|
|
Type type = 1;
|
|
|
|
optional string table_name = 2;
|
|
repeated SchemaEntry schema_entry = 3;
|
|
}
|
|
|