v1.5.1 增强程序稳定性
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v6.33.2
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc v3.19.6
|
||||
// source: service_ns_node.proto
|
||||
|
||||
package pb
|
||||
@@ -24,6 +24,8 @@ const (
|
||||
NSNodeService_CountAllNSNodesMatch_FullMethodName = "/pb.NSNodeService/countAllNSNodesMatch"
|
||||
NSNodeService_ListNSNodesMatch_FullMethodName = "/pb.NSNodeService/listNSNodesMatch"
|
||||
NSNodeService_CountAllUpgradeNSNodesWithNSClusterId_FullMethodName = "/pb.NSNodeService/countAllUpgradeNSNodesWithNSClusterId"
|
||||
NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_FullMethodName = "/pb.NSNodeService/findAllUpgradeNSNodesWithNSClusterId"
|
||||
NSNodeService_UpgradeNSNode_FullMethodName = "/pb.NSNodeService/upgradeNSNode"
|
||||
NSNodeService_CreateNSNode_FullMethodName = "/pb.NSNodeService/createNSNode"
|
||||
NSNodeService_DeleteNSNode_FullMethodName = "/pb.NSNodeService/deleteNSNode"
|
||||
NSNodeService_FindNSNode_FullMethodName = "/pb.NSNodeService/findNSNode"
|
||||
@@ -46,8 +48,6 @@ const (
|
||||
NSNodeService_UpdateNSNodeDDoSProtection_FullMethodName = "/pb.NSNodeService/updateNSNodeDDoSProtection"
|
||||
NSNodeService_FindNSNodeAPIConfig_FullMethodName = "/pb.NSNodeService/findNSNodeAPIConfig"
|
||||
NSNodeService_UpdateNSNodeAPIConfig_FullMethodName = "/pb.NSNodeService/updateNSNodeAPIConfig"
|
||||
NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_FullMethodName = "/pb.NSNodeService/findAllUpgradeNSNodesWithNSClusterId"
|
||||
NSNodeService_UpgradeNSNode_FullMethodName = "/pb.NSNodeService/upgradeNSNode"
|
||||
)
|
||||
|
||||
// NSNodeServiceClient is the client API for NSNodeService service.
|
||||
@@ -66,6 +66,10 @@ type NSNodeServiceClient interface {
|
||||
ListNSNodesMatch(ctx context.Context, in *ListNSNodesMatchRequest, opts ...grpc.CallOption) (*ListNSNodesMatchResponse, error)
|
||||
// 计算需要升级的NS节点数量
|
||||
CountAllUpgradeNSNodesWithNSClusterId(ctx context.Context, in *CountAllUpgradeNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
// 列出所有需要升级的NS节点
|
||||
FindAllUpgradeNSNodesWithNSClusterId(ctx context.Context, in *FindAllUpgradeNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllUpgradeNSNodesWithNSClusterIdResponse, error)
|
||||
// 升级单个NS节点
|
||||
UpgradeNSNode(ctx context.Context, in *UpgradeNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 创建NS节点
|
||||
CreateNSNode(ctx context.Context, in *CreateNSNodeRequest, opts ...grpc.CallOption) (*CreateNSNodeResponse, error)
|
||||
// 删除NS节点
|
||||
@@ -110,10 +114,6 @@ type NSNodeServiceClient interface {
|
||||
FindNSNodeAPIConfig(ctx context.Context, in *FindNSNodeAPIConfigRequest, opts ...grpc.CallOption) (*FindNSNodeAPIConfigResponse, error)
|
||||
// 修改某个节点的API相关配置
|
||||
UpdateNSNodeAPIConfig(ctx context.Context, in *UpdateNSNodeAPIConfigRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 列出所有需要升级的NS节点
|
||||
FindAllUpgradeNSNodesWithNSClusterId(ctx context.Context, in *FindAllUpgradeNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllUpgradeNSNodesWithNSClusterIdResponse, error)
|
||||
// 升级单个NS节点
|
||||
UpgradeNSNode(ctx context.Context, in *UpgradeNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
type nSNodeServiceClient struct {
|
||||
@@ -174,6 +174,26 @@ func (c *nSNodeServiceClient) CountAllUpgradeNSNodesWithNSClusterId(ctx context.
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nSNodeServiceClient) FindAllUpgradeNSNodesWithNSClusterId(ctx context.Context, in *FindAllUpgradeNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllUpgradeNSNodesWithNSClusterIdResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(FindAllUpgradeNSNodesWithNSClusterIdResponse)
|
||||
err := c.cc.Invoke(ctx, NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nSNodeServiceClient) UpgradeNSNode(ctx context.Context, in *UpgradeNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, NSNodeService_UpgradeNSNode_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nSNodeServiceClient) CreateNSNode(ctx context.Context, in *CreateNSNodeRequest, opts ...grpc.CallOption) (*CreateNSNodeResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CreateNSNodeResponse)
|
||||
@@ -397,26 +417,6 @@ func (c *nSNodeServiceClient) UpdateNSNodeAPIConfig(ctx context.Context, in *Upd
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nSNodeServiceClient) FindAllUpgradeNSNodesWithNSClusterId(ctx context.Context, in *FindAllUpgradeNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllUpgradeNSNodesWithNSClusterIdResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(FindAllUpgradeNSNodesWithNSClusterIdResponse)
|
||||
err := c.cc.Invoke(ctx, NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nSNodeServiceClient) UpgradeNSNode(ctx context.Context, in *UpgradeNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, NSNodeService_UpgradeNSNode_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// NSNodeServiceServer is the server API for NSNodeService service.
|
||||
// All implementations should embed UnimplementedNSNodeServiceServer
|
||||
// for forward compatibility.
|
||||
@@ -433,6 +433,10 @@ type NSNodeServiceServer interface {
|
||||
ListNSNodesMatch(context.Context, *ListNSNodesMatchRequest) (*ListNSNodesMatchResponse, error)
|
||||
// 计算需要升级的NS节点数量
|
||||
CountAllUpgradeNSNodesWithNSClusterId(context.Context, *CountAllUpgradeNSNodesWithNSClusterIdRequest) (*RPCCountResponse, error)
|
||||
// 列出所有需要升级的NS节点
|
||||
FindAllUpgradeNSNodesWithNSClusterId(context.Context, *FindAllUpgradeNSNodesWithNSClusterIdRequest) (*FindAllUpgradeNSNodesWithNSClusterIdResponse, error)
|
||||
// 升级单个NS节点
|
||||
UpgradeNSNode(context.Context, *UpgradeNSNodeRequest) (*RPCSuccess, error)
|
||||
// 创建NS节点
|
||||
CreateNSNode(context.Context, *CreateNSNodeRequest) (*CreateNSNodeResponse, error)
|
||||
// 删除NS节点
|
||||
@@ -477,10 +481,6 @@ type NSNodeServiceServer interface {
|
||||
FindNSNodeAPIConfig(context.Context, *FindNSNodeAPIConfigRequest) (*FindNSNodeAPIConfigResponse, error)
|
||||
// 修改某个节点的API相关配置
|
||||
UpdateNSNodeAPIConfig(context.Context, *UpdateNSNodeAPIConfigRequest) (*RPCSuccess, error)
|
||||
// 列出所有需要升级的NS节点
|
||||
FindAllUpgradeNSNodesWithNSClusterId(context.Context, *FindAllUpgradeNSNodesWithNSClusterIdRequest) (*FindAllUpgradeNSNodesWithNSClusterIdResponse, error)
|
||||
// 升级单个NS节点
|
||||
UpgradeNSNode(context.Context, *UpgradeNSNodeRequest) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
// UnimplementedNSNodeServiceServer should be embedded to have
|
||||
@@ -491,91 +491,91 @@ type NSNodeServiceServer interface {
|
||||
type UnimplementedNSNodeServiceServer struct{}
|
||||
|
||||
func (UnimplementedNSNodeServiceServer) FindAllNSNodesWithNSClusterId(context.Context, *FindAllNSNodesWithNSClusterIdRequest) (*FindAllNSNodesWithNSClusterIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAllNSNodesWithNSClusterId not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method FindAllNSNodesWithNSClusterId not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) CountAllNSNodes(context.Context, *CountAllNSNodesRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllNSNodes not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method CountAllNSNodes not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) CountAllNSNodesMatch(context.Context, *CountAllNSNodesMatchRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllNSNodesMatch not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method CountAllNSNodesMatch not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) ListNSNodesMatch(context.Context, *ListNSNodesMatchRequest) (*ListNSNodesMatchResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListNSNodesMatch not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ListNSNodesMatch not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) CountAllUpgradeNSNodesWithNSClusterId(context.Context, *CountAllUpgradeNSNodesWithNSClusterIdRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllUpgradeNSNodesWithNSClusterId not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) CreateNSNode(context.Context, *CreateNSNodeRequest) (*CreateNSNodeResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) DeleteNSNode(context.Context, *DeleteNSNodeRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNode(context.Context, *FindNSNodeRequest) (*FindNSNodeResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNode(context.Context, *UpdateNSNodeRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) InstallNSNode(context.Context, *InstallNSNodeRequest) (*InstallNSNodeResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method InstallNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNodeInstallStatus(context.Context, *FindNSNodeInstallStatusRequest) (*FindNSNodeInstallStatusResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindNSNodeInstallStatus not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeIsInstalled(context.Context, *UpdateNSNodeIsInstalledRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNodeIsInstalled not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeStatus(context.Context, *UpdateNSNodeStatusRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNodeStatus not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindCurrentNSNodeConfig(context.Context, *FindCurrentNSNodeConfigRequest) (*FindCurrentNSNodeConfigResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindCurrentNSNodeConfig not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) CheckNSNodeLatestVersion(context.Context, *CheckNSNodeLatestVersionRequest) (*CheckNSNodeLatestVersionResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CheckNSNodeLatestVersion not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindLatestNSNodeVersion(context.Context, *FindLatestNSNodeVersionRequest) (*FindLatestNSNodeVersionResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindLatestNSNodeVersion not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) DownloadNSNodeInstallationFile(context.Context, *DownloadNSNodeInstallationFileRequest) (*DownloadNSNodeInstallationFileResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DownloadNSNodeInstallationFile not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) NsNodeStream(grpc.BidiStreamingServer[NSNodeStreamMessage, NSNodeStreamMessage]) error {
|
||||
return status.Errorf(codes.Unimplemented, "method NsNodeStream not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) SendCommandToNSNode(context.Context, *NSNodeStreamMessage) (*NSNodeStreamMessage, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SendCommandToNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeConnectedAPINodes(context.Context, *UpdateNSNodeConnectedAPINodesRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNodeConnectedAPINodes not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeLogin(context.Context, *UpdateNSNodeLoginRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNodeLogin not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) StartNSNode(context.Context, *StartNSNodeRequest) (*StartNSNodeResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method StartNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) StopNSNode(context.Context, *StopNSNodeRequest) (*StopNSNodeResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method StopNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNodeDDoSProtection(context.Context, *FindNSNodeDDoSProtectionRequest) (*FindNSNodeDDoSProtectionResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindNSNodeDDoSProtection not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeDDoSProtection(context.Context, *UpdateNSNodeDDoSProtectionRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNodeDDoSProtection not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNodeAPIConfig(context.Context, *FindNSNodeAPIConfigRequest) (*FindNSNodeAPIConfigResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindNSNodeAPIConfig not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeAPIConfig(context.Context, *UpdateNSNodeAPIConfigRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNodeAPIConfig not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method CountAllUpgradeNSNodesWithNSClusterId not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindAllUpgradeNSNodesWithNSClusterId(context.Context, *FindAllUpgradeNSNodesWithNSClusterIdRequest) (*FindAllUpgradeNSNodesWithNSClusterIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAllUpgradeNSNodesWithNSClusterId not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method FindAllUpgradeNSNodesWithNSClusterId not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpgradeNSNode(context.Context, *UpgradeNSNodeRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpgradeNSNode not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method UpgradeNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) CreateNSNode(context.Context, *CreateNSNodeRequest) (*CreateNSNodeResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreateNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) DeleteNSNode(context.Context, *DeleteNSNodeRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNode(context.Context, *FindNSNodeRequest) (*FindNSNodeResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FindNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNode(context.Context, *UpdateNSNodeRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) InstallNSNode(context.Context, *InstallNSNodeRequest) (*InstallNSNodeResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method InstallNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNodeInstallStatus(context.Context, *FindNSNodeInstallStatusRequest) (*FindNSNodeInstallStatusResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FindNSNodeInstallStatus not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeIsInstalled(context.Context, *UpdateNSNodeIsInstalledRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateNSNodeIsInstalled not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeStatus(context.Context, *UpdateNSNodeStatusRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateNSNodeStatus not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindCurrentNSNodeConfig(context.Context, *FindCurrentNSNodeConfigRequest) (*FindCurrentNSNodeConfigResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FindCurrentNSNodeConfig not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) CheckNSNodeLatestVersion(context.Context, *CheckNSNodeLatestVersionRequest) (*CheckNSNodeLatestVersionResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CheckNSNodeLatestVersion not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindLatestNSNodeVersion(context.Context, *FindLatestNSNodeVersionRequest) (*FindLatestNSNodeVersionResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FindLatestNSNodeVersion not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) DownloadNSNodeInstallationFile(context.Context, *DownloadNSNodeInstallationFileRequest) (*DownloadNSNodeInstallationFileResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DownloadNSNodeInstallationFile not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) NsNodeStream(grpc.BidiStreamingServer[NSNodeStreamMessage, NSNodeStreamMessage]) error {
|
||||
return status.Error(codes.Unimplemented, "method NsNodeStream not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) SendCommandToNSNode(context.Context, *NSNodeStreamMessage) (*NSNodeStreamMessage, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SendCommandToNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeConnectedAPINodes(context.Context, *UpdateNSNodeConnectedAPINodesRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateNSNodeConnectedAPINodes not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeLogin(context.Context, *UpdateNSNodeLoginRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateNSNodeLogin not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) StartNSNode(context.Context, *StartNSNodeRequest) (*StartNSNodeResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StartNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) StopNSNode(context.Context, *StopNSNodeRequest) (*StopNSNodeResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StopNSNode not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNodeDDoSProtection(context.Context, *FindNSNodeDDoSProtectionRequest) (*FindNSNodeDDoSProtectionResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FindNSNodeDDoSProtection not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeDDoSProtection(context.Context, *UpdateNSNodeDDoSProtectionRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateNSNodeDDoSProtection not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) FindNSNodeAPIConfig(context.Context, *FindNSNodeAPIConfigRequest) (*FindNSNodeAPIConfigResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method FindNSNodeAPIConfig not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) UpdateNSNodeAPIConfig(context.Context, *UpdateNSNodeAPIConfigRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateNSNodeAPIConfig not implemented")
|
||||
}
|
||||
func (UnimplementedNSNodeServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -587,7 +587,7 @@ type UnsafeNSNodeServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterNSNodeServiceServer(s grpc.ServiceRegistrar, srv NSNodeServiceServer) {
|
||||
// If the following call pancis, it indicates UnimplementedNSNodeServiceServer was
|
||||
// If the following call panics, it indicates UnimplementedNSNodeServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
@@ -687,6 +687,42 @@ func _NSNodeService_CountAllUpgradeNSNodesWithNSClusterId_Handler(srv interface{
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindAllUpgradeNSNodesWithNSClusterIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NSNodeServiceServer).FindAllUpgradeNSNodesWithNSClusterId(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NSNodeServiceServer).FindAllUpgradeNSNodesWithNSClusterId(ctx, req.(*FindAllUpgradeNSNodesWithNSClusterIdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NSNodeService_UpgradeNSNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpgradeNSNodeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NSNodeServiceServer).UpgradeNSNode(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: NSNodeService_UpgradeNSNode_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NSNodeServiceServer).UpgradeNSNode(ctx, req.(*UpgradeNSNodeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NSNodeService_CreateNSNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateNSNodeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1072,42 +1108,6 @@ func _NSNodeService_UpdateNSNodeAPIConfig_Handler(srv interface{}, ctx context.C
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindAllUpgradeNSNodesWithNSClusterIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NSNodeServiceServer).FindAllUpgradeNSNodesWithNSClusterId(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NSNodeServiceServer).FindAllUpgradeNSNodesWithNSClusterId(ctx, req.(*FindAllUpgradeNSNodesWithNSClusterIdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NSNodeService_UpgradeNSNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpgradeNSNodeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NSNodeServiceServer).UpgradeNSNode(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: NSNodeService_UpgradeNSNode_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NSNodeServiceServer).UpgradeNSNode(ctx, req.(*UpgradeNSNodeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// NSNodeService_ServiceDesc is the grpc.ServiceDesc for NSNodeService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -1135,6 +1135,14 @@ var NSNodeService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "countAllUpgradeNSNodesWithNSClusterId",
|
||||
Handler: _NSNodeService_CountAllUpgradeNSNodesWithNSClusterId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findAllUpgradeNSNodesWithNSClusterId",
|
||||
Handler: _NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "upgradeNSNode",
|
||||
Handler: _NSNodeService_UpgradeNSNode_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "createNSNode",
|
||||
Handler: _NSNodeService_CreateNSNode_Handler,
|
||||
@@ -1219,14 +1227,6 @@ var NSNodeService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "updateNSNodeAPIConfig",
|
||||
Handler: _NSNodeService_UpdateNSNodeAPIConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findAllUpgradeNSNodesWithNSClusterId",
|
||||
Handler: _NSNodeService_FindAllUpgradeNSNodesWithNSClusterId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "upgradeNSNode",
|
||||
Handler: _NSNodeService_UpgradeNSNode_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user