2017-04-12 11:14:09 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
|
|
enum Crawlers {
|
|
|
|
HEALTH_ACTIVEDIRECTORY = 0;
|
|
|
|
HEALTH_DNS = 1;
|
|
|
|
HEALTH_FTP = 2;
|
|
|
|
HEALTH_FTPS = 3;
|
|
|
|
HEALTH_IMAP = 4;
|
|
|
|
HEALTH_LDAP = 5;
|
|
|
|
HEALTH_MONGODB = 6;
|
|
|
|
HEALTH_MSSQL = 7;
|
|
|
|
HEALTH_MYSQL = 8;
|
|
|
|
HEALTH_MARIADB = 9;
|
|
|
|
HEALTH_PGSQL = 10;
|
|
|
|
HEALTH_NETBIOS = 11;
|
|
|
|
HEALTH_ORACLE = 12;
|
|
|
|
HEALTH_POP3 = 13;
|
|
|
|
HEALTH_REDIS = 14;
|
|
|
|
HEALTH_RMI = 15;
|
|
|
|
HEALTH_SMB = 16;
|
|
|
|
HEALTH_SMTP = 17;
|
|
|
|
HEALTH_SNMPV2C = 18;
|
2017-04-13 03:00:28 +00:00
|
|
|
HEALTH_SNMPV3 = 19;
|
2017-04-12 11:14:09 +00:00
|
|
|
HEALTH_SSH = 20;
|
|
|
|
HEALTH_TELNET = 21;
|
|
|
|
HEALTH_WMI = 22;
|
2017-04-12 11:17:43 +00:00
|
|
|
HEALTH_CASSANDRA = 23;
|
2017-04-12 11:29:05 +00:00
|
|
|
HEALTH_HTTP = 24;
|
2017-04-13 03:00:28 +00:00
|
|
|
SQL = 25;
|
|
|
|
SNMP = 26;
|
|
|
|
WMI = 27;
|
|
|
|
JMX = 28;
|
|
|
|
REDIS = 29;
|
2017-04-13 03:36:17 +00:00
|
|
|
MONGODB = 30;
|
2017-04-12 11:14:09 +00:00
|
|
|
}
|
|
|
|
|
2017-04-12 11:46:42 +00:00
|
|
|
// services
|
2017-04-12 11:14:09 +00:00
|
|
|
service Config {
|
2017-04-27 10:42:46 +00:00
|
|
|
rpc Add (InputAdd) returns (Output) {}
|
2017-04-12 11:14:09 +00:00
|
|
|
rpc Remove (Input) returns (Output) {}
|
|
|
|
rpc Init (InputArray) returns (Output) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
service Data {
|
|
|
|
rpc Get (Input) returns (Output) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-04-14 09:30:38 +00:00
|
|
|
service Status {
|
|
|
|
rpc Status(Empty) returns (Boolean) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
message Empty {}
|
|
|
|
message Boolean {
|
|
|
|
bool check = 1;
|
|
|
|
}
|
2017-04-12 11:14:09 +00:00
|
|
|
|
|
|
|
message InputArray {
|
2017-04-12 11:46:42 +00:00
|
|
|
repeated Init in = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Init {
|
|
|
|
Crawlers name = 1;
|
2017-04-27 10:42:46 +00:00
|
|
|
bytes data = 2;
|
2017-04-12 11:14:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Input {
|
|
|
|
Crawlers name = 1;
|
|
|
|
string id =2;
|
|
|
|
}
|
|
|
|
|
2017-04-27 10:42:46 +00:00
|
|
|
message InputAdd {
|
|
|
|
Crawlers name = 1;
|
|
|
|
bytes data =2;
|
|
|
|
}
|
|
|
|
|
2017-04-12 11:46:42 +00:00
|
|
|
// response models
|
2017-04-12 11:14:09 +00:00
|
|
|
message Output {
|
|
|
|
int64 startDate = 1;
|
|
|
|
int64 endDate = 2;
|
|
|
|
bytes data = 3;
|
|
|
|
}
|