1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
936 B
Protocol Buffer

syntax = "proto3";
package cluster;
import "command/command.proto";
option go_package = "github.com/rqlite/rqlite/cluster";
message Credentials {
string username = 1;
string password = 2;
}
message Address {
string url = 1;
}
message Command {
enum Type {
COMMAND_TYPE_UNKNOWN = 0;
COMMAND_TYPE_GET_NODE_API_URL = 1;
COMMAND_TYPE_EXECUTE = 2;
COMMAND_TYPE_QUERY = 3;
COMMAND_TYPE_BACKUP = 4;
}
Type type = 1;
oneof request {
command.ExecuteRequest execute_request = 2;
command.QueryRequest query_request = 3;
command.BackupRequest backup_request = 5;
}
Credentials credentials = 4;
}
message CommandExecuteResponse {
string error = 1;
repeated command.ExecuteResult results = 2;
}
message CommandQueryResponse {
string error = 1;
repeated command.QueryRows rows = 2;
}
message CommandBackupResponse {
string error = 1;
}