fix: Removes unneeded echo calls and cleans up capnp file.
This commit is contained in:
parent
ba53b7a25d
commit
42d88a90c4
2 changed files with 38 additions and 58 deletions
89
data.capnp
89
data.capnp
|
@ -15,54 +15,44 @@ enum StatusCode {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Start {
|
struct Start {
|
||||||
id @0 :UInt8 = 0;
|
arguments @0 :Data;
|
||||||
arguments @1 :Data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Stop {
|
struct Stop {}
|
||||||
id @0 :UInt8 = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct AddProxy {
|
struct AddProxy {
|
||||||
id @0 :UInt8 = 2;
|
sourceIP @0 :Data;
|
||||||
sourceIP @1 :Data;
|
sourcePort @1 :UInt16;
|
||||||
sourcePort @2 :UInt16;
|
destPort @2 :UInt16;
|
||||||
destPort @3 :UInt16;
|
protocol @3 :Protocol;
|
||||||
protocol @4 :Protocol;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct RemoveProxy {
|
struct RemoveProxy {
|
||||||
id @0 :UInt8 = 3;
|
sourceIP @0 :Data;
|
||||||
sourceIP @1 :Data;
|
sourcePort @1 :UInt16;
|
||||||
sourcePort @2 :UInt16;
|
destPort @2 :UInt16;
|
||||||
destPort @3 :UInt16;
|
protocol @3 :Protocol;
|
||||||
protocol @4 :Protocol;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ProxyStatusRequest {
|
struct ProxyStatusRequest {
|
||||||
id @0 :UInt8 = 4;
|
sourceIP @0 :Data;
|
||||||
sourceIP @1 :Data;
|
sourcePort @1 :UInt16;
|
||||||
sourcePort @2 :UInt16;
|
destPort @2 :UInt16;
|
||||||
destPort @3 :UInt16;
|
protocol @3 :Protocol;
|
||||||
protocol @4 :Protocol;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ProxyStatusResponse {
|
struct ProxyStatusResponse {
|
||||||
id @0 :UInt8 = 5;
|
sourceIP @0 :Data;
|
||||||
sourceIP @1 :Data;
|
sourcePort @1 :UInt16;
|
||||||
sourcePort @2 :UInt16;
|
destPort @2 :UInt16;
|
||||||
destPort @3 :UInt16;
|
protocol @3 :Protocol;
|
||||||
protocol @4 :Protocol;
|
isActive @4 :Bool;
|
||||||
isActive @5 :Bool;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ProxyInstanceRequest {
|
struct ProxyInstanceRequest {}
|
||||||
id @0 :UInt8 = 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ProxyInstanceResponse {
|
struct ProxyInstanceResponse {
|
||||||
id @0 :UInt8 = 7;
|
proxies @0 :List(ProxyInstance);
|
||||||
proxies @1 :List(ProxyInstance);
|
|
||||||
|
|
||||||
struct ProxyInstance {
|
struct ProxyInstance {
|
||||||
sourceIP @0 :Text;
|
sourceIP @0 :Text;
|
||||||
|
@ -72,24 +62,18 @@ struct ProxyInstanceResponse {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct BackendStatusRequest {
|
struct BackendStatusRequest {}
|
||||||
id @0 :UInt8 = 8;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct BackendStatusResponse {
|
struct BackendStatusResponse {
|
||||||
id @0 :UInt8 = 9;
|
isRunning @0 :Bool;
|
||||||
isRunning @1 :Bool;
|
statusCode @1 :StatusCode;
|
||||||
statusCode @2 :StatusCode;
|
message @2 :Text;
|
||||||
message @3 :Text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ProxyConnectionsRequest {
|
struct ProxyConnectionsRequest {}
|
||||||
id @0 :UInt8 = 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ProxyConnectionsResponse {
|
struct ProxyConnectionsResponse {
|
||||||
id @0 :UInt8 = 11;
|
connections @0 :List(Connection);
|
||||||
connections @1 :List(Connection);
|
|
||||||
|
|
||||||
struct Connection {
|
struct Connection {
|
||||||
sourceIP @0 :Data;
|
sourceIP @0 :Data;
|
||||||
|
@ -101,23 +85,20 @@ struct ProxyConnectionsResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CheckClientParameters {
|
struct CheckClientParameters {
|
||||||
id @0 :UInt8 = 12;
|
sourceIP @0 :Data;
|
||||||
sourceIP @1 :Data;
|
sourcePort @1 :UInt16;
|
||||||
sourcePort @2 :UInt16;
|
destPort @2 :UInt16;
|
||||||
destPort @3 :UInt16;
|
protocol @3 :Protocol;
|
||||||
protocol @4 :Protocol;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CheckServerParameters {
|
struct CheckServerParameters {
|
||||||
id @0 :UInt8 = 13;
|
arguments @0 :Data;
|
||||||
arguments @1 :Data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CheckParametersResponse {
|
struct CheckParametersResponse {
|
||||||
id @0 :UInt8 = 14;
|
inResponseTo @0 :InResponseTo;
|
||||||
inResponseTo @1 :InResponseTo;
|
isValid @1 :Bool;
|
||||||
isValid @2 :Bool;
|
message @2 :Text;
|
||||||
message @3 :Text;
|
|
||||||
|
|
||||||
enum InResponseTo {
|
enum InResponseTo {
|
||||||
checkClientParameters @0;
|
checkClientParameters @0;
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo $PATH
|
|
||||||
capnp compile -I ./go-capnp/std -ogo ./*.capnp
|
capnp compile -I ./go-capnp/std -ogo ./*.capnp
|
Loading…
Add table
Add a link
Reference in a new issue