From dd928215ef8c2c809e5388bb0c8e986b42bd5ada Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 29 Dec 2020 18:28:31 +0800 Subject: [PATCH] =?UTF-8?q?[API=E8=8A=82=E7=82=B9]=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=89=88=E6=9C=AC=E5=8F=B7=E3=80=81CPU?= =?UTF-8?q?=E3=80=81=E5=86=85=E5=AD=98=E3=80=81=E7=8A=B6=E6=80=81=E7=AD=89?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/rpc/pb/model_api_node.pb.go | 12 +++++++++++- pkg/rpc/protos/model_api_node.proto | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pkg/rpc/pb/model_api_node.pb.go b/pkg/rpc/pb/model_api_node.pb.go index 3df3fc0..ff0a208 100644 --- a/pkg/rpc/pb/model_api_node.pb.go +++ b/pkg/rpc/pb/model_api_node.pb.go @@ -41,6 +41,7 @@ type APINode struct { HttpsJSON []byte `protobuf:"bytes,9,opt,name=httpsJSON,proto3" json:"httpsJSON,omitempty"` AccessAddrsJSON []byte `protobuf:"bytes,10,opt,name=accessAddrsJSON,proto3" json:"accessAddrsJSON,omitempty"` AccessAddrs []string `protobuf:"bytes,11,rep,name=accessAddrs,proto3" json:"accessAddrs,omitempty"` + StatusJSON []byte `protobuf:"bytes,12,opt,name=statusJSON,proto3" json:"statusJSON,omitempty"` } func (x *APINode) Reset() { @@ -152,11 +153,18 @@ func (x *APINode) GetAccessAddrs() []string { return nil } +func (x *APINode) GetStatusJSON() []byte { + if x != nil { + return x.StatusJSON + } + return nil +} + var File_model_api_node_proto protoreflect.FileDescriptor var file_model_api_node_proto_rawDesc = []byte{ 0x0a, 0x14, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xc3, 0x02, 0x0a, 0x07, 0x41, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xe3, 0x02, 0x0a, 0x07, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, @@ -177,6 +185,8 @@ var file_model_api_node_proto_rawDesc = []byte{ 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x64, 0x64, 0x72, 0x73, + 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/pkg/rpc/protos/model_api_node.proto b/pkg/rpc/protos/model_api_node.proto index c7bc617..df0b0e7 100644 --- a/pkg/rpc/protos/model_api_node.proto +++ b/pkg/rpc/protos/model_api_node.proto @@ -15,4 +15,5 @@ message APINode { bytes httpsJSON = 9; bytes accessAddrsJSON = 10; repeated string accessAddrs = 11; + bytes statusJSON = 12; } \ No newline at end of file