mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-14 13:00:25 +08:00
使用最新的protoc-gen-go和protoc-gen-go-grpc插件
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v3.19.4
|
||||
// source: service_node_group.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -25,10 +20,6 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 创建分组
|
||||
type CreateNodeGroupRequest struct {
|
||||
state protoimpl.MessageState
|
||||
@@ -747,275 +738,3 @@ func file_service_node_group_proto_init() {
|
||||
file_service_node_group_proto_goTypes = nil
|
||||
file_service_node_group_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// NodeGroupServiceClient is the client API for NodeGroupService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type NodeGroupServiceClient interface {
|
||||
// 创建分组
|
||||
CreateNodeGroup(ctx context.Context, in *CreateNodeGroupRequest, opts ...grpc.CallOption) (*CreateNodeGroupResponse, error)
|
||||
// 修改分组
|
||||
UpdateNodeGroup(ctx context.Context, in *UpdateNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 删除分组
|
||||
DeleteNodeGroup(ctx context.Context, in *DeleteNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 查询所有分组
|
||||
FindAllEnabledNodeGroupsWithNodeClusterId(ctx context.Context, in *FindAllEnabledNodeGroupsWithNodeClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error)
|
||||
// 修改分组排序
|
||||
UpdateNodeGroupOrders(ctx context.Context, in *UpdateNodeGroupOrdersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 查找单个分组信息
|
||||
FindEnabledNodeGroup(ctx context.Context, in *FindEnabledNodeGroupRequest, opts ...grpc.CallOption) (*FindEnabledNodeGroupResponse, error)
|
||||
}
|
||||
|
||||
type nodeGroupServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewNodeGroupServiceClient(cc grpc.ClientConnInterface) NodeGroupServiceClient {
|
||||
return &nodeGroupServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *nodeGroupServiceClient) CreateNodeGroup(ctx context.Context, in *CreateNodeGroupRequest, opts ...grpc.CallOption) (*CreateNodeGroupResponse, error) {
|
||||
out := new(CreateNodeGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/createNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nodeGroupServiceClient) UpdateNodeGroup(ctx context.Context, in *UpdateNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/updateNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nodeGroupServiceClient) DeleteNodeGroup(ctx context.Context, in *DeleteNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/deleteNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nodeGroupServiceClient) FindAllEnabledNodeGroupsWithNodeClusterId(ctx context.Context, in *FindAllEnabledNodeGroupsWithNodeClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error) {
|
||||
out := new(FindAllEnabledNodeGroupsWithNodeClusterIdResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/findAllEnabledNodeGroupsWithNodeClusterId", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nodeGroupServiceClient) UpdateNodeGroupOrders(ctx context.Context, in *UpdateNodeGroupOrdersRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/updateNodeGroupOrders", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *nodeGroupServiceClient) FindEnabledNodeGroup(ctx context.Context, in *FindEnabledNodeGroupRequest, opts ...grpc.CallOption) (*FindEnabledNodeGroupResponse, error) {
|
||||
out := new(FindEnabledNodeGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/findEnabledNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// NodeGroupServiceServer is the server API for NodeGroupService service.
|
||||
type NodeGroupServiceServer interface {
|
||||
// 创建分组
|
||||
CreateNodeGroup(context.Context, *CreateNodeGroupRequest) (*CreateNodeGroupResponse, error)
|
||||
// 修改分组
|
||||
UpdateNodeGroup(context.Context, *UpdateNodeGroupRequest) (*RPCSuccess, error)
|
||||
// 删除分组
|
||||
DeleteNodeGroup(context.Context, *DeleteNodeGroupRequest) (*RPCSuccess, error)
|
||||
// 查询所有分组
|
||||
FindAllEnabledNodeGroupsWithNodeClusterId(context.Context, *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error)
|
||||
// 修改分组排序
|
||||
UpdateNodeGroupOrders(context.Context, *UpdateNodeGroupOrdersRequest) (*RPCSuccess, error)
|
||||
// 查找单个分组信息
|
||||
FindEnabledNodeGroup(context.Context, *FindEnabledNodeGroupRequest) (*FindEnabledNodeGroupResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedNodeGroupServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedNodeGroupServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedNodeGroupServiceServer) CreateNodeGroup(context.Context, *CreateNodeGroupRequest) (*CreateNodeGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateNodeGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedNodeGroupServiceServer) UpdateNodeGroup(context.Context, *UpdateNodeGroupRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedNodeGroupServiceServer) DeleteNodeGroup(context.Context, *DeleteNodeGroupRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteNodeGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedNodeGroupServiceServer) FindAllEnabledNodeGroupsWithNodeClusterId(context.Context, *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeGroupsWithNodeClusterId not implemented")
|
||||
}
|
||||
func (*UnimplementedNodeGroupServiceServer) UpdateNodeGroupOrders(context.Context, *UpdateNodeGroupOrdersRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeGroupOrders not implemented")
|
||||
}
|
||||
func (*UnimplementedNodeGroupServiceServer) FindEnabledNodeGroup(context.Context, *FindEnabledNodeGroupRequest) (*FindEnabledNodeGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodeGroup not implemented")
|
||||
}
|
||||
|
||||
func RegisterNodeGroupServiceServer(s *grpc.Server, srv NodeGroupServiceServer) {
|
||||
s.RegisterService(&_NodeGroupService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _NodeGroupService_CreateNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NodeGroupServiceServer).CreateNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.NodeGroupService/CreateNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NodeGroupServiceServer).CreateNodeGroup(ctx, req.(*CreateNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NodeGroupService_UpdateNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NodeGroupServiceServer).UpdateNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.NodeGroupService/UpdateNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NodeGroupServiceServer).UpdateNodeGroup(ctx, req.(*UpdateNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NodeGroupService_DeleteNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NodeGroupServiceServer).DeleteNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.NodeGroupService/DeleteNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NodeGroupServiceServer).DeleteNodeGroup(ctx, req.(*DeleteNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NodeGroupService_FindAllEnabledNodeGroupsWithNodeClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindAllEnabledNodeGroupsWithNodeClusterIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NodeGroupServiceServer).FindAllEnabledNodeGroupsWithNodeClusterId(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.NodeGroupService/FindAllEnabledNodeGroupsWithNodeClusterId",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NodeGroupServiceServer).FindAllEnabledNodeGroupsWithNodeClusterId(ctx, req.(*FindAllEnabledNodeGroupsWithNodeClusterIdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NodeGroupService_UpdateNodeGroupOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateNodeGroupOrdersRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NodeGroupServiceServer).UpdateNodeGroupOrders(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.NodeGroupService/UpdateNodeGroupOrders",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NodeGroupServiceServer).UpdateNodeGroupOrders(ctx, req.(*UpdateNodeGroupOrdersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NodeGroupService_FindEnabledNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindEnabledNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NodeGroupServiceServer).FindEnabledNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.NodeGroupService/FindEnabledNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NodeGroupServiceServer).FindEnabledNodeGroup(ctx, req.(*FindEnabledNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _NodeGroupService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "pb.NodeGroupService",
|
||||
HandlerType: (*NodeGroupServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "createNodeGroup",
|
||||
Handler: _NodeGroupService_CreateNodeGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateNodeGroup",
|
||||
Handler: _NodeGroupService_UpdateNodeGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "deleteNodeGroup",
|
||||
Handler: _NodeGroupService_DeleteNodeGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findAllEnabledNodeGroupsWithNodeClusterId",
|
||||
Handler: _NodeGroupService_FindAllEnabledNodeGroupsWithNodeClusterId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateNodeGroupOrders",
|
||||
Handler: _NodeGroupService_UpdateNodeGroupOrders_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findEnabledNodeGroup",
|
||||
Handler: _NodeGroupService_FindEnabledNodeGroup_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_node_group.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user