fastnetmon-ng/src/fastnetmon.proto
2015-10-15 21:17:16 +02:00

26 lines
442 B
Protocol Buffer

syntax = "proto3";
package fastmitigation;
service Fastnetmon {
rpc GetBanlist(BanListRequest) returns (stream BanListReply) {}
rpc ExecuteBan(ExecuteBanRequest) returns (ExecuteBanReply) {}
}
// We could not create RPC method without params
message BanListRequest {
}
message BanListReply {
string ip_address = 1;
}
message ExecuteBanRequest {
string ip_address = 1;
}
message ExecuteBanReply {
bool result = 1;
}