mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-05-05 15:25:19 +08:00
[API节点]支持HTTP API
This commit is contained in:
@@ -13,6 +13,9 @@ message APINode {
|
||||
string description = 7;
|
||||
bytes httpJSON = 8;
|
||||
bytes httpsJSON = 9;
|
||||
bool RestIsOn = 13;
|
||||
bytes restHTTPJSON = 14;
|
||||
bytes restHTTPSJSON = 15;
|
||||
bytes accessAddrsJSON = 10;
|
||||
repeated string accessAddrs = 11;
|
||||
bytes statusJSON = 12;
|
||||
|
||||
22
pkg/rpc/protos/service_api_access_token.proto
Normal file
22
pkg/rpc/protos/service_api_access_token.proto
Normal file
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// AccessToken相关服务
|
||||
service APIAccessTokenService {
|
||||
// 获取AccessToken
|
||||
rpc GetAPIAccessToken (GetAPIAccessTokenRequest) returns (GetAPIAccessTokenResponse);
|
||||
}
|
||||
|
||||
// 获取AccessToken
|
||||
message GetAPIAccessTokenRequest {
|
||||
string type = 1;
|
||||
string accessKeyId = 2;
|
||||
string accessKey = 3;
|
||||
}
|
||||
|
||||
message GetAPIAccessTokenResponse {
|
||||
string token = 1;
|
||||
int64 expiresAt = 2;
|
||||
}
|
||||
@@ -39,6 +39,9 @@ message CreateAPINodeRequest {
|
||||
bytes httpsJSON = 4;
|
||||
bytes accessAddrsJSON = 5;
|
||||
bool isOn = 6;
|
||||
bool restIsOn = 7;
|
||||
bytes restHTTPJSON = 8;
|
||||
bytes restHTTPSJSON = 9;
|
||||
}
|
||||
|
||||
message CreateAPINodeResponse {
|
||||
@@ -54,6 +57,9 @@ message UpdateAPINodeRequest {
|
||||
bytes httpsJSON = 5;
|
||||
bytes accessAddrsJSON = 6;
|
||||
bool isOn = 7;
|
||||
bool restIsOn = 8;
|
||||
bytes restHTTPJSON = 9;
|
||||
bytes restHTTPSJSON = 10;
|
||||
}
|
||||
|
||||
// 删除API节点
|
||||
|
||||
Reference in New Issue
Block a user