Files
natpass/code/network/connect.proto
T
2021-10-18 15:37:02 +08:00

40 lines
639 B
Protocol Buffer

syntax = "proto3";
package network;
option go_package="./;network";
message connect_addr {
string addr = 1;
uint32 port = 2;
}
message connect_shell {
string exec = 1;
repeated string env = 2;
}
message connect_vnc {
uint32 fps = 1;
}
message connect_request {
enum type {
tcp = 0;
udp = 1;
shell = 2;
vnc = 3;
}
string name = 1;
type _type = 2;
oneof payload {
connect_addr caddr = 10;
connect_shell cshell = 11;
connect_vnc cvnc = 12;
}
}
message connect_response {
bool ok = 1;
string msg = 2;
}