mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
40 lines
639 B
Protocol Buffer
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;
|
|
}
|