2015-10-13 18:45:27 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package fastmitigation;
|
|
|
|
|
|
|
|
service Fastnetmon {
|
2015-10-15 20:50:21 +02:00
|
|
|
rpc GetBanlist(BanListRequest) returns (stream BanListReply) {}
|
2015-10-15 21:17:16 +02:00
|
|
|
rpc ExecuteBan(ExecuteBanRequest) returns (ExecuteBanReply) {}
|
2015-10-15 22:27:51 +02:00
|
|
|
rpc ExecuteUnBan(ExecuteBanRequest) returns (ExecuteBanReply) {}
|
2015-10-13 18:45:27 +02:00
|
|
|
}
|
|
|
|
|
2015-10-15 20:50:21 +02:00
|
|
|
// We could not create RPC method without params
|
2015-10-13 18:45:27 +02:00
|
|
|
message BanListRequest {
|
2015-10-15 20:50:21 +02:00
|
|
|
|
2015-10-13 18:45:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message BanListReply {
|
2015-10-15 20:50:21 +02:00
|
|
|
string ip_address = 1;
|
2015-10-13 18:45:27 +02:00
|
|
|
}
|
2015-10-15 21:17:16 +02:00
|
|
|
|
|
|
|
message ExecuteBanRequest {
|
|
|
|
string ip_address = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExecuteBanReply {
|
|
|
|
bool result = 1;
|
|
|
|
}
|