mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-28 21:46:37 +08:00
实现基本的集群DNS列表、设置、简单数据同步
This commit is contained in:
@@ -196,17 +196,17 @@ var file_service_file_proto_rawDesc = []byte{
|
||||
0x33, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x69, 0x6e,
|
||||
0x69, 0x73, 0x68, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x32, 0x95, 0x01, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x32, 0x8f, 0x01, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72,
|
||||
0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69,
|
||||
0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x49, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x46,
|
||||
0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x46,
|
||||
0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
|
||||
0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04,
|
||||
0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53,
|
||||
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -226,13 +226,13 @@ var file_service_file_proto_goTypes = []interface{}{
|
||||
(*CreateFileRequest)(nil), // 0: pb.CreateFileRequest
|
||||
(*CreateFileResponse)(nil), // 1: pb.CreateFileResponse
|
||||
(*UpdateFileFinishedRequest)(nil), // 2: pb.UpdateFileFinishedRequest
|
||||
(*RPCUpdateSuccess)(nil), // 3: pb.RPCUpdateSuccess
|
||||
(*RPCSuccess)(nil), // 3: pb.RPCSuccess
|
||||
}
|
||||
var file_service_file_proto_depIdxs = []int32{
|
||||
0, // 0: pb.FileService.createFile:input_type -> pb.CreateFileRequest
|
||||
2, // 1: pb.FileService.updateFileFinished:input_type -> pb.UpdateFileFinishedRequest
|
||||
1, // 2: pb.FileService.createFile:output_type -> pb.CreateFileResponse
|
||||
3, // 3: pb.FileService.updateFileFinished:output_type -> pb.RPCUpdateSuccess
|
||||
3, // 3: pb.FileService.updateFileFinished:output_type -> pb.RPCSuccess
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
@@ -319,7 +319,7 @@ type FileServiceClient interface {
|
||||
// 创建文件
|
||||
CreateFile(ctx context.Context, in *CreateFileRequest, opts ...grpc.CallOption) (*CreateFileResponse, error)
|
||||
// 将文件置为已完成
|
||||
UpdateFileFinished(ctx context.Context, in *UpdateFileFinishedRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error)
|
||||
UpdateFileFinished(ctx context.Context, in *UpdateFileFinishedRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
type fileServiceClient struct {
|
||||
@@ -339,8 +339,8 @@ func (c *fileServiceClient) CreateFile(ctx context.Context, in *CreateFileReques
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *fileServiceClient) UpdateFileFinished(ctx context.Context, in *UpdateFileFinishedRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error) {
|
||||
out := new(RPCUpdateSuccess)
|
||||
func (c *fileServiceClient) UpdateFileFinished(ctx context.Context, in *UpdateFileFinishedRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.FileService/updateFileFinished", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -353,7 +353,7 @@ type FileServiceServer interface {
|
||||
// 创建文件
|
||||
CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
|
||||
// 将文件置为已完成
|
||||
UpdateFileFinished(context.Context, *UpdateFileFinishedRequest) (*RPCUpdateSuccess, error)
|
||||
UpdateFileFinished(context.Context, *UpdateFileFinishedRequest) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
// UnimplementedFileServiceServer can be embedded to have forward compatible implementations.
|
||||
@@ -363,7 +363,7 @@ type UnimplementedFileServiceServer struct {
|
||||
func (*UnimplementedFileServiceServer) CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateFile not implemented")
|
||||
}
|
||||
func (*UnimplementedFileServiceServer) UpdateFileFinished(context.Context, *UpdateFileFinishedRequest) (*RPCUpdateSuccess, error) {
|
||||
func (*UnimplementedFileServiceServer) UpdateFileFinished(context.Context, *UpdateFileFinishedRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateFileFinished not implemented")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user