refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
// source: disk.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/base/cloud/proto/disk.proto
package cloud
import (
protobuf "bsm/full/protobuf"
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -43,35 +44,35 @@ const (
// 云盘目录服务
type DiskClient interface {
// 创建目录
CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*StatusReply, error)
CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 获取目录详情
GetDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
GetDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
// 更新目录
UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*StatusReply, error)
UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 删除目录
DeleteDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
DeleteDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 获取目录列表
ListDirs(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error)
ListDirs(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error)
// 获取目录树
GetDirTree(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
GetDirTree(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
// 移动目录
MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*StatusReply, error)
MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 上传文件
UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 获取文件详情
GetFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error)
GetFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error)
// 更新文件
UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*StatusReply, error)
UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 删除文件
DeleteFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
DeleteFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 获取文件列表
ListFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
ListFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
// 移动文件
MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 复制文件
CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 搜索文件
SearchFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
SearchFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
}
type diskClient struct {
@@ -82,9 +83,9 @@ func NewDiskClient(cc grpc.ClientConnInterface) DiskClient {
return &diskClient{cc}
}
func (c *diskClient) CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_CreateDir_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -92,7 +93,7 @@ func (c *diskClient) CreateDir(ctx context.Context, in *CreateDirRequest, opts .
return out, nil
}
func (c *diskClient) GetDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
func (c *diskClient) GetDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CloudDiskDirItem)
err := c.cc.Invoke(ctx, Disk_GetDir_FullMethodName, in, out, cOpts...)
@@ -102,9 +103,9 @@ func (c *diskClient) GetDir(ctx context.Context, in *IdentRequest, opts ...grpc.
return out, nil
}
func (c *diskClient) UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_UpdateDir_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -112,9 +113,9 @@ func (c *diskClient) UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts .
return out, nil
}
func (c *diskClient) DeleteDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) DeleteDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_DeleteDir_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -122,7 +123,7 @@ func (c *diskClient) DeleteDir(ctx context.Context, in *IdentRequest, opts ...gr
return out, nil
}
func (c *diskClient) ListDirs(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error) {
func (c *diskClient) ListDirs(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListDirsResponse)
err := c.cc.Invoke(ctx, Disk_ListDirs_FullMethodName, in, out, cOpts...)
@@ -132,7 +133,7 @@ func (c *diskClient) ListDirs(ctx context.Context, in *FetchRequest, opts ...grp
return out, nil
}
func (c *diskClient) GetDirTree(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
func (c *diskClient) GetDirTree(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CloudDiskDirItem)
err := c.cc.Invoke(ctx, Disk_GetDirTree_FullMethodName, in, out, cOpts...)
@@ -142,9 +143,9 @@ func (c *diskClient) GetDirTree(ctx context.Context, in *IdentRequest, opts ...g
return out, nil
}
func (c *diskClient) MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_MoveDir_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -152,9 +153,9 @@ func (c *diskClient) MoveDir(ctx context.Context, in *MoveDirRequest, opts ...gr
return out, nil
}
func (c *diskClient) UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_UploadFile_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -162,7 +163,7 @@ func (c *diskClient) UploadFile(ctx context.Context, in *CloudDiskFileRequest, o
return out, nil
}
func (c *diskClient) GetFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error) {
func (c *diskClient) GetFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CloudDiskFileItem)
err := c.cc.Invoke(ctx, Disk_GetFile_FullMethodName, in, out, cOpts...)
@@ -172,9 +173,9 @@ func (c *diskClient) GetFile(ctx context.Context, in *IdentRequest, opts ...grpc
return out, nil
}
func (c *diskClient) UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_UpdateFile_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -182,9 +183,9 @@ func (c *diskClient) UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts
return out, nil
}
func (c *diskClient) DeleteFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) DeleteFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_DeleteFile_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -192,7 +193,7 @@ func (c *diskClient) DeleteFile(ctx context.Context, in *IdentRequest, opts ...g
return out, nil
}
func (c *diskClient) ListFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
func (c *diskClient) ListFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListFilesResponse)
err := c.cc.Invoke(ctx, Disk_ListFiles_FullMethodName, in, out, cOpts...)
@@ -202,9 +203,9 @@ func (c *diskClient) ListFiles(ctx context.Context, in *FetchRequest, opts ...gr
return out, nil
}
func (c *diskClient) MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_MoveFile_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -212,9 +213,9 @@ func (c *diskClient) MoveFile(ctx context.Context, in *MoveFileRequest, opts ...
return out, nil
}
func (c *diskClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *diskClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Disk_CopyFile_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -222,7 +223,7 @@ func (c *diskClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...
return out, nil
}
func (c *diskClient) SearchFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
func (c *diskClient) SearchFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListFilesResponse)
err := c.cc.Invoke(ctx, Disk_SearchFiles_FullMethodName, in, out, cOpts...)
@@ -233,98 +234,96 @@ func (c *diskClient) SearchFiles(ctx context.Context, in *FetchRequest, opts ...
}
// DiskServer is the server API for Disk service.
// All implementations must embed UnimplementedDiskServer
// All implementations should embed UnimplementedDiskServer
// for forward compatibility.
//
// 云盘目录服务
type DiskServer interface {
// 创建目录
CreateDir(context.Context, *CreateDirRequest) (*StatusReply, error)
CreateDir(context.Context, *CreateDirRequest) (*protobuf.StatusReply, error)
// 获取目录详情
GetDir(context.Context, *IdentRequest) (*CloudDiskDirItem, error)
GetDir(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error)
// 更新目录
UpdateDir(context.Context, *CloudDiskDirItem) (*StatusReply, error)
UpdateDir(context.Context, *CloudDiskDirItem) (*protobuf.StatusReply, error)
// 删除目录
DeleteDir(context.Context, *IdentRequest) (*StatusReply, error)
DeleteDir(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
// 获取目录列表
ListDirs(context.Context, *FetchRequest) (*ListDirsResponse, error)
ListDirs(context.Context, *protobuf.FetchRequest) (*ListDirsResponse, error)
// 获取目录树
GetDirTree(context.Context, *IdentRequest) (*CloudDiskDirItem, error)
GetDirTree(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error)
// 移动目录
MoveDir(context.Context, *MoveDirRequest) (*StatusReply, error)
MoveDir(context.Context, *MoveDirRequest) (*protobuf.StatusReply, error)
// 上传文件
UploadFile(context.Context, *CloudDiskFileRequest) (*StatusReply, error)
UploadFile(context.Context, *CloudDiskFileRequest) (*protobuf.StatusReply, error)
// 获取文件详情
GetFile(context.Context, *IdentRequest) (*CloudDiskFileItem, error)
GetFile(context.Context, *protobuf.IdentRequest) (*CloudDiskFileItem, error)
// 更新文件
UpdateFile(context.Context, *CloudDiskFileItem) (*StatusReply, error)
UpdateFile(context.Context, *CloudDiskFileItem) (*protobuf.StatusReply, error)
// 删除文件
DeleteFile(context.Context, *IdentRequest) (*StatusReply, error)
DeleteFile(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
// 获取文件列表
ListFiles(context.Context, *FetchRequest) (*ListFilesResponse, error)
ListFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error)
// 移动文件
MoveFile(context.Context, *MoveFileRequest) (*StatusReply, error)
MoveFile(context.Context, *MoveFileRequest) (*protobuf.StatusReply, error)
// 复制文件
CopyFile(context.Context, *CopyFileRequest) (*StatusReply, error)
CopyFile(context.Context, *CopyFileRequest) (*protobuf.StatusReply, error)
// 搜索文件
SearchFiles(context.Context, *FetchRequest) (*ListFilesResponse, error)
mustEmbedUnimplementedDiskServer()
SearchFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error)
}
// UnimplementedDiskServer must be embedded to have
// UnimplementedDiskServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedDiskServer struct{}
func (UnimplementedDiskServer) CreateDir(context.Context, *CreateDirRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateDir not implemented")
func (UnimplementedDiskServer) CreateDir(context.Context, *CreateDirRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method CreateDir not implemented")
}
func (UnimplementedDiskServer) GetDir(context.Context, *IdentRequest) (*CloudDiskDirItem, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDir not implemented")
func (UnimplementedDiskServer) GetDir(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error) {
return nil, status.Error(codes.Unimplemented, "method GetDir not implemented")
}
func (UnimplementedDiskServer) UpdateDir(context.Context, *CloudDiskDirItem) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateDir not implemented")
func (UnimplementedDiskServer) UpdateDir(context.Context, *CloudDiskDirItem) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method UpdateDir not implemented")
}
func (UnimplementedDiskServer) DeleteDir(context.Context, *IdentRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteDir not implemented")
func (UnimplementedDiskServer) DeleteDir(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method DeleteDir not implemented")
}
func (UnimplementedDiskServer) ListDirs(context.Context, *FetchRequest) (*ListDirsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListDirs not implemented")
func (UnimplementedDiskServer) ListDirs(context.Context, *protobuf.FetchRequest) (*ListDirsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ListDirs not implemented")
}
func (UnimplementedDiskServer) GetDirTree(context.Context, *IdentRequest) (*CloudDiskDirItem, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDirTree not implemented")
func (UnimplementedDiskServer) GetDirTree(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error) {
return nil, status.Error(codes.Unimplemented, "method GetDirTree not implemented")
}
func (UnimplementedDiskServer) MoveDir(context.Context, *MoveDirRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method MoveDir not implemented")
func (UnimplementedDiskServer) MoveDir(context.Context, *MoveDirRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method MoveDir not implemented")
}
func (UnimplementedDiskServer) UploadFile(context.Context, *CloudDiskFileRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadFile not implemented")
func (UnimplementedDiskServer) UploadFile(context.Context, *CloudDiskFileRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method UploadFile not implemented")
}
func (UnimplementedDiskServer) GetFile(context.Context, *IdentRequest) (*CloudDiskFileItem, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetFile not implemented")
func (UnimplementedDiskServer) GetFile(context.Context, *protobuf.IdentRequest) (*CloudDiskFileItem, error) {
return nil, status.Error(codes.Unimplemented, "method GetFile not implemented")
}
func (UnimplementedDiskServer) UpdateFile(context.Context, *CloudDiskFileItem) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateFile not implemented")
func (UnimplementedDiskServer) UpdateFile(context.Context, *CloudDiskFileItem) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method UpdateFile not implemented")
}
func (UnimplementedDiskServer) DeleteFile(context.Context, *IdentRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteFile not implemented")
func (UnimplementedDiskServer) DeleteFile(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method DeleteFile not implemented")
}
func (UnimplementedDiskServer) ListFiles(context.Context, *FetchRequest) (*ListFilesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListFiles not implemented")
func (UnimplementedDiskServer) ListFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ListFiles not implemented")
}
func (UnimplementedDiskServer) MoveFile(context.Context, *MoveFileRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method MoveFile not implemented")
func (UnimplementedDiskServer) MoveFile(context.Context, *MoveFileRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method MoveFile not implemented")
}
func (UnimplementedDiskServer) CopyFile(context.Context, *CopyFileRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method CopyFile not implemented")
func (UnimplementedDiskServer) CopyFile(context.Context, *CopyFileRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method CopyFile not implemented")
}
func (UnimplementedDiskServer) SearchFiles(context.Context, *FetchRequest) (*ListFilesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SearchFiles not implemented")
func (UnimplementedDiskServer) SearchFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SearchFiles not implemented")
}
func (UnimplementedDiskServer) mustEmbedUnimplementedDiskServer() {}
func (UnimplementedDiskServer) testEmbeddedByValue() {}
func (UnimplementedDiskServer) testEmbeddedByValue() {}
// UnsafeDiskServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to DiskServer will
@@ -334,7 +333,7 @@ type UnsafeDiskServer interface {
}
func RegisterDiskServer(s grpc.ServiceRegistrar, srv DiskServer) {
// If the following call pancis, it indicates UnimplementedDiskServer was
// If the following call panics, it indicates UnimplementedDiskServer 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.
@@ -363,7 +362,7 @@ func _Disk_CreateDir_Handler(srv interface{}, ctx context.Context, dec func(inte
}
func _Disk_GetDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdentRequest)
in := new(protobuf.IdentRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -375,7 +374,7 @@ func _Disk_GetDir_Handler(srv interface{}, ctx context.Context, dec func(interfa
FullMethod: Disk_GetDir_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).GetDir(ctx, req.(*IdentRequest))
return srv.(DiskServer).GetDir(ctx, req.(*protobuf.IdentRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -399,7 +398,7 @@ func _Disk_UpdateDir_Handler(srv interface{}, ctx context.Context, dec func(inte
}
func _Disk_DeleteDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdentRequest)
in := new(protobuf.IdentRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -411,13 +410,13 @@ func _Disk_DeleteDir_Handler(srv interface{}, ctx context.Context, dec func(inte
FullMethod: Disk_DeleteDir_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).DeleteDir(ctx, req.(*IdentRequest))
return srv.(DiskServer).DeleteDir(ctx, req.(*protobuf.IdentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Disk_ListDirs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FetchRequest)
in := new(protobuf.FetchRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -429,13 +428,13 @@ func _Disk_ListDirs_Handler(srv interface{}, ctx context.Context, dec func(inter
FullMethod: Disk_ListDirs_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).ListDirs(ctx, req.(*FetchRequest))
return srv.(DiskServer).ListDirs(ctx, req.(*protobuf.FetchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Disk_GetDirTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdentRequest)
in := new(protobuf.IdentRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -447,7 +446,7 @@ func _Disk_GetDirTree_Handler(srv interface{}, ctx context.Context, dec func(int
FullMethod: Disk_GetDirTree_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).GetDirTree(ctx, req.(*IdentRequest))
return srv.(DiskServer).GetDirTree(ctx, req.(*protobuf.IdentRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -489,7 +488,7 @@ func _Disk_UploadFile_Handler(srv interface{}, ctx context.Context, dec func(int
}
func _Disk_GetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdentRequest)
in := new(protobuf.IdentRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -501,7 +500,7 @@ func _Disk_GetFile_Handler(srv interface{}, ctx context.Context, dec func(interf
FullMethod: Disk_GetFile_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).GetFile(ctx, req.(*IdentRequest))
return srv.(DiskServer).GetFile(ctx, req.(*protobuf.IdentRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -525,7 +524,7 @@ func _Disk_UpdateFile_Handler(srv interface{}, ctx context.Context, dec func(int
}
func _Disk_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdentRequest)
in := new(protobuf.IdentRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -537,13 +536,13 @@ func _Disk_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(int
FullMethod: Disk_DeleteFile_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).DeleteFile(ctx, req.(*IdentRequest))
return srv.(DiskServer).DeleteFile(ctx, req.(*protobuf.IdentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Disk_ListFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FetchRequest)
in := new(protobuf.FetchRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -555,7 +554,7 @@ func _Disk_ListFiles_Handler(srv interface{}, ctx context.Context, dec func(inte
FullMethod: Disk_ListFiles_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).ListFiles(ctx, req.(*FetchRequest))
return srv.(DiskServer).ListFiles(ctx, req.(*protobuf.FetchRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -597,7 +596,7 @@ func _Disk_CopyFile_Handler(srv interface{}, ctx context.Context, dec func(inter
}
func _Disk_SearchFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FetchRequest)
in := new(protobuf.FetchRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -609,7 +608,7 @@ func _Disk_SearchFiles_Handler(srv interface{}, ctx context.Context, dec func(in
FullMethod: Disk_SearchFiles_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiskServer).SearchFiles(ctx, req.(*FetchRequest))
return srv.(DiskServer).SearchFiles(ctx, req.(*protobuf.FetchRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -683,5 +682,5 @@ var Disk_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "disk.proto",
Metadata: "module/base/cloud/proto/disk.proto",
}