增加简化版的创建TCP网站API

This commit is contained in:
GoEdgeLab
2023-06-18 17:14:29 +08:00
parent 3a9d508508
commit 019cee01db
3 changed files with 1654 additions and 1391 deletions

View File

@@ -10249,6 +10249,18 @@
],
"isDeprecated": false
},
{
"name": "createBasicTCPServer",
"requestMessageName": "CreateBasicTCPServerRequest",
"responseMessageName": "CreateBasicTCPServerResponse",
"code": "rpc createBasicTCPServer(CreateBasicTCPServerRequest) returns (CreateBasicTCPServerResponse);",
"doc": "快速创建基本的TCP网站",
"roles": [
"admin",
"user"
],
"isDeprecated": false
},
{
"name": "updateServerBasic",
"requestMessageName": "UpdateServerBasicRequest",
@@ -14618,6 +14630,16 @@
"code": "message CreateBasicHTTPServerResponse {\n\tint64 serverId = 1; // 所创建的网站ID\n}",
"doc": ""
},
{
"name": "CreateBasicTCPServerRequest",
"code": "message CreateBasicTCPServerRequest {\n\tint64 nodeClusterId = 1; // 部署的集群ID用户创建时不需要指定此项\n\tint64 userId = 2; // 管理员创建网站时可以指定此用户ID也可以为0表示不指定\n\trepeated int32 tcpPorts = 3; // TCP端口\n\trepeated int32 tlsPorts = 4; // TLS端口\n\trepeated int64 sslCertIds = 5; // TLS用到的证书ID列表\n\trepeated string originAddrs = 6; // 源站地址列表,每一个源站地址需要带协议部分,比如 tcp://example.com, tls://example.com\n}",
"doc": "快速创建基本的TCP网站"
},
{
"name": "CreateBasicTCPServerResponse",
"code": "message CreateBasicTCPServerResponse {\n\tint64 serverId = 1; // 所创建的网站ID\n}",
"doc": ""
},
{
"name": "CreateClientAgentIPsRequest",
"code": "message CreateClientAgentIPsRequest {\n\trepeated AgentIPInfo agentIPs = 1;\n\n\n\tmessage AgentIPInfo {\n\t\tstring agentCode = 1;\n\t\tstring ip = 2;\n\t\tstring ptr = 3;\n\t}\n}",