1syntax = "proto3";
2
3package fastmitigation;
4
5service Fastnetmon {
6    rpc GetBanlist(BanListRequest) returns (stream BanListReply) {}
7    rpc ExecuteBan(ExecuteBanRequest) returns (ExecuteBanReply) {}
8    rpc ExecuteUnBan(ExecuteBanRequest) returns (ExecuteBanReply) {}
9}
10
11// We could not create RPC method without params
12message BanListRequest {
13
14}
15
16message BanListReply {
17    string ip_address = 1;
18}
19
20message ExecuteBanRequest {
21    string ip_address = 1;
22}
23
24message ExecuteBanReply {
25    bool result = 1;
26}
27