mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-06 17:59:11 +00:00
39 lines
748 B
Protocol Buffer
39 lines
748 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "common.proto";
|
|
|
|
package web;
|
|
|
|
message DeviceOsInfo {
|
|
string os_type = 1;
|
|
string version = 2;
|
|
string distribution = 3;
|
|
}
|
|
|
|
message HeartbeatRequest {
|
|
common.UUID machine_id = 1;
|
|
common.UUID inst_id = 2;
|
|
string user_token = 3;
|
|
|
|
string easytier_version = 4;
|
|
string report_time = 5;
|
|
string hostname = 6;
|
|
|
|
repeated common.UUID running_network_instances = 7;
|
|
DeviceOsInfo device_os = 8;
|
|
bool support_config_source = 9;
|
|
}
|
|
|
|
message HeartbeatResponse {}
|
|
|
|
message GetFeatureRequest {}
|
|
|
|
message GetFeatureResponse {
|
|
bool support_encryption = 1;
|
|
}
|
|
|
|
service WebServerService {
|
|
rpc Heartbeat(HeartbeatRequest) returns (HeartbeatResponse);
|
|
rpc GetFeature(GetFeatureRequest) returns (GetFeatureResponse);
|
|
}
|