mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-09 08:40:25 +08:00
智能DNS初步支持搜索引擎线路
This commit is contained in:
37
pkg/rpc/protos/service_client_agent_ip.proto
Normal file
37
pkg/rpc/protos/service_client_agent_ip.proto
Normal file
@@ -0,0 +1,37 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/rpc_messages.proto";
|
||||
import "models/model_client_agent_ip.proto";
|
||||
|
||||
// Agent IP服务
|
||||
service ClientAgentIPService {
|
||||
// 创建一组IP
|
||||
rpc createClientAgentIPs(CreateClientAgentIPsRequest) returns (RPCSuccess);
|
||||
|
||||
// 查询最新的IP
|
||||
rpc listClientAgentIPsAfterId(ListClientAgentIPsAfterIdRequest) returns (ListClientAgentIPsAfterIdResponse);
|
||||
}
|
||||
|
||||
// 创建一组IP
|
||||
message CreateClientAgentIPsRequest {
|
||||
repeated AgentIPInfo agentIPs = 1;
|
||||
|
||||
message AgentIPInfo {
|
||||
string agentCode = 1;
|
||||
string ip = 2;
|
||||
string ptr = 3;
|
||||
}
|
||||
}
|
||||
|
||||
// 查询最新的IP
|
||||
message ListClientAgentIPsAfterIdRequest {
|
||||
int64 id = 1;
|
||||
int64 size = 2;
|
||||
}
|
||||
|
||||
message ListClientAgentIPsAfterIdResponse {
|
||||
repeated ClientAgentIP clientAgentIPs = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user