refactor: localize protobuf definitions
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
package cloud
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -44,35 +43,35 @@ const (
|
||||
// 云盘目录服务
|
||||
type DiskClient interface {
|
||||
// 创建目录
|
||||
CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 获取目录详情
|
||||
GetDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
|
||||
GetDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
|
||||
// 更新目录
|
||||
UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 删除目录
|
||||
DeleteDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
DeleteDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 获取目录列表
|
||||
ListDirs(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error)
|
||||
ListDirs(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error)
|
||||
// 获取目录树
|
||||
GetDirTree(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
|
||||
GetDirTree(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error)
|
||||
// 移动目录
|
||||
MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 上传文件
|
||||
UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 获取文件详情
|
||||
GetFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error)
|
||||
GetFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error)
|
||||
// 更新文件
|
||||
UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 删除文件
|
||||
DeleteFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
DeleteFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 获取文件列表
|
||||
ListFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
|
||||
ListFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
|
||||
// 移动文件
|
||||
MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 复制文件
|
||||
CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 搜索文件
|
||||
SearchFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
|
||||
SearchFiles(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
|
||||
}
|
||||
|
||||
type diskClient struct {
|
||||
@@ -83,9 +82,9 @@ func NewDiskClient(cc grpc.ClientConnInterface) DiskClient {
|
||||
return &diskClient{cc}
|
||||
}
|
||||
|
||||
func (c *diskClient) CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) CreateDir(ctx context.Context, in *CreateDirRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_CreateDir_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -93,7 +92,7 @@ func (c *diskClient) CreateDir(ctx context.Context, in *CreateDirRequest, opts .
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) GetDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
|
||||
func (c *diskClient) GetDir(ctx context.Context, in *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...)
|
||||
@@ -103,9 +102,9 @@ func (c *diskClient) GetDir(ctx context.Context, in *protobuf.IdentRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_UpdateDir_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -113,9 +112,9 @@ func (c *diskClient) UpdateDir(ctx context.Context, in *CloudDiskDirItem, opts .
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) DeleteDir(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) DeleteDir(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_DeleteDir_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -123,7 +122,7 @@ func (c *diskClient) DeleteDir(ctx context.Context, in *protobuf.IdentRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) ListDirs(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListDirsResponse, error) {
|
||||
func (c *diskClient) ListDirs(ctx context.Context, in *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...)
|
||||
@@ -133,7 +132,7 @@ func (c *diskClient) ListDirs(ctx context.Context, in *protobuf.FetchRequest, op
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) GetDirTree(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskDirItem, error) {
|
||||
func (c *diskClient) GetDirTree(ctx context.Context, in *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...)
|
||||
@@ -143,9 +142,9 @@ func (c *diskClient) GetDirTree(ctx context.Context, in *protobuf.IdentRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) MoveDir(ctx context.Context, in *MoveDirRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_MoveDir_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -153,9 +152,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) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) UploadFile(ctx context.Context, in *CloudDiskFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_UploadFile_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -163,7 +162,7 @@ func (c *diskClient) UploadFile(ctx context.Context, in *CloudDiskFileRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) GetFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*CloudDiskFileItem, error) {
|
||||
func (c *diskClient) GetFile(ctx context.Context, in *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...)
|
||||
@@ -173,9 +172,9 @@ func (c *diskClient) GetFile(ctx context.Context, in *protobuf.IdentRequest, opt
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_UpdateFile_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -183,9 +182,9 @@ func (c *diskClient) UpdateFile(ctx context.Context, in *CloudDiskFileItem, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) DeleteFile(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) DeleteFile(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_DeleteFile_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -193,7 +192,7 @@ func (c *diskClient) DeleteFile(ctx context.Context, in *protobuf.IdentRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) ListFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
|
||||
func (c *diskClient) ListFiles(ctx context.Context, in *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...)
|
||||
@@ -203,9 +202,9 @@ func (c *diskClient) ListFiles(ctx context.Context, in *protobuf.FetchRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) MoveFile(ctx context.Context, in *MoveFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_MoveFile_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -213,9 +212,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) (*protobuf.StatusReply, error) {
|
||||
func (c *diskClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(protobuf.StatusReply)
|
||||
out := new(StatusReply)
|
||||
err := c.cc.Invoke(ctx, Disk_CopyFile_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -223,7 +222,7 @@ func (c *diskClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *diskClient) SearchFiles(ctx context.Context, in *protobuf.FetchRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) {
|
||||
func (c *diskClient) SearchFiles(ctx context.Context, in *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...)
|
||||
@@ -240,35 +239,35 @@ func (c *diskClient) SearchFiles(ctx context.Context, in *protobuf.FetchRequest,
|
||||
// 云盘目录服务
|
||||
type DiskServer interface {
|
||||
// 创建目录
|
||||
CreateDir(context.Context, *CreateDirRequest) (*protobuf.StatusReply, error)
|
||||
CreateDir(context.Context, *CreateDirRequest) (*StatusReply, error)
|
||||
// 获取目录详情
|
||||
GetDir(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error)
|
||||
GetDir(context.Context, *IdentRequest) (*CloudDiskDirItem, error)
|
||||
// 更新目录
|
||||
UpdateDir(context.Context, *CloudDiskDirItem) (*protobuf.StatusReply, error)
|
||||
UpdateDir(context.Context, *CloudDiskDirItem) (*StatusReply, error)
|
||||
// 删除目录
|
||||
DeleteDir(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
|
||||
DeleteDir(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
// 获取目录列表
|
||||
ListDirs(context.Context, *protobuf.FetchRequest) (*ListDirsResponse, error)
|
||||
ListDirs(context.Context, *FetchRequest) (*ListDirsResponse, error)
|
||||
// 获取目录树
|
||||
GetDirTree(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error)
|
||||
GetDirTree(context.Context, *IdentRequest) (*CloudDiskDirItem, error)
|
||||
// 移动目录
|
||||
MoveDir(context.Context, *MoveDirRequest) (*protobuf.StatusReply, error)
|
||||
MoveDir(context.Context, *MoveDirRequest) (*StatusReply, error)
|
||||
// 上传文件
|
||||
UploadFile(context.Context, *CloudDiskFileRequest) (*protobuf.StatusReply, error)
|
||||
UploadFile(context.Context, *CloudDiskFileRequest) (*StatusReply, error)
|
||||
// 获取文件详情
|
||||
GetFile(context.Context, *protobuf.IdentRequest) (*CloudDiskFileItem, error)
|
||||
GetFile(context.Context, *IdentRequest) (*CloudDiskFileItem, error)
|
||||
// 更新文件
|
||||
UpdateFile(context.Context, *CloudDiskFileItem) (*protobuf.StatusReply, error)
|
||||
UpdateFile(context.Context, *CloudDiskFileItem) (*StatusReply, error)
|
||||
// 删除文件
|
||||
DeleteFile(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
|
||||
DeleteFile(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
// 获取文件列表
|
||||
ListFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error)
|
||||
ListFiles(context.Context, *FetchRequest) (*ListFilesResponse, error)
|
||||
// 移动文件
|
||||
MoveFile(context.Context, *MoveFileRequest) (*protobuf.StatusReply, error)
|
||||
MoveFile(context.Context, *MoveFileRequest) (*StatusReply, error)
|
||||
// 复制文件
|
||||
CopyFile(context.Context, *CopyFileRequest) (*protobuf.StatusReply, error)
|
||||
CopyFile(context.Context, *CopyFileRequest) (*StatusReply, error)
|
||||
// 搜索文件
|
||||
SearchFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error)
|
||||
SearchFiles(context.Context, *FetchRequest) (*ListFilesResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedDiskServer should be embedded to have
|
||||
@@ -278,49 +277,49 @@ type DiskServer interface {
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedDiskServer struct{}
|
||||
|
||||
func (UnimplementedDiskServer) CreateDir(context.Context, *CreateDirRequest) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) CreateDir(context.Context, *CreateDirRequest) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreateDir not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) GetDir(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error) {
|
||||
func (UnimplementedDiskServer) GetDir(context.Context, *IdentRequest) (*CloudDiskDirItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetDir not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) UpdateDir(context.Context, *CloudDiskDirItem) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) UpdateDir(context.Context, *CloudDiskDirItem) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateDir not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) DeleteDir(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) DeleteDir(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteDir not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) ListDirs(context.Context, *protobuf.FetchRequest) (*ListDirsResponse, error) {
|
||||
func (UnimplementedDiskServer) ListDirs(context.Context, *FetchRequest) (*ListDirsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ListDirs not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) GetDirTree(context.Context, *protobuf.IdentRequest) (*CloudDiskDirItem, error) {
|
||||
func (UnimplementedDiskServer) GetDirTree(context.Context, *IdentRequest) (*CloudDiskDirItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetDirTree not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) MoveDir(context.Context, *MoveDirRequest) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) MoveDir(context.Context, *MoveDirRequest) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method MoveDir not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) UploadFile(context.Context, *CloudDiskFileRequest) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) UploadFile(context.Context, *CloudDiskFileRequest) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UploadFile not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) GetFile(context.Context, *protobuf.IdentRequest) (*CloudDiskFileItem, error) {
|
||||
func (UnimplementedDiskServer) GetFile(context.Context, *IdentRequest) (*CloudDiskFileItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetFile not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) UpdateFile(context.Context, *CloudDiskFileItem) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) UpdateFile(context.Context, *CloudDiskFileItem) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateFile not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) DeleteFile(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) DeleteFile(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteFile not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) ListFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error) {
|
||||
func (UnimplementedDiskServer) ListFiles(context.Context, *FetchRequest) (*ListFilesResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ListFiles not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) MoveFile(context.Context, *MoveFileRequest) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) MoveFile(context.Context, *MoveFileRequest) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method MoveFile not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) CopyFile(context.Context, *CopyFileRequest) (*protobuf.StatusReply, error) {
|
||||
func (UnimplementedDiskServer) CopyFile(context.Context, *CopyFileRequest) (*StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CopyFile not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) SearchFiles(context.Context, *protobuf.FetchRequest) (*ListFilesResponse, error) {
|
||||
func (UnimplementedDiskServer) SearchFiles(context.Context, *FetchRequest) (*ListFilesResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SearchFiles not implemented")
|
||||
}
|
||||
func (UnimplementedDiskServer) testEmbeddedByValue() {}
|
||||
@@ -362,7 +361,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(protobuf.IdentRequest)
|
||||
in := new(IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -374,7 +373,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.(*protobuf.IdentRequest))
|
||||
return srv.(DiskServer).GetDir(ctx, req.(*IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -398,7 +397,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(protobuf.IdentRequest)
|
||||
in := new(IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -410,13 +409,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.(*protobuf.IdentRequest))
|
||||
return srv.(DiskServer).DeleteDir(ctx, req.(*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(protobuf.FetchRequest)
|
||||
in := new(FetchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -428,13 +427,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.(*protobuf.FetchRequest))
|
||||
return srv.(DiskServer).ListDirs(ctx, req.(*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(protobuf.IdentRequest)
|
||||
in := new(IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -446,7 +445,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.(*protobuf.IdentRequest))
|
||||
return srv.(DiskServer).GetDirTree(ctx, req.(*IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -488,7 +487,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(protobuf.IdentRequest)
|
||||
in := new(IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -500,7 +499,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.(*protobuf.IdentRequest))
|
||||
return srv.(DiskServer).GetFile(ctx, req.(*IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -524,7 +523,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(protobuf.IdentRequest)
|
||||
in := new(IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -536,13 +535,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.(*protobuf.IdentRequest))
|
||||
return srv.(DiskServer).DeleteFile(ctx, req.(*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(protobuf.FetchRequest)
|
||||
in := new(FetchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -554,7 +553,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.(*protobuf.FetchRequest))
|
||||
return srv.(DiskServer).ListFiles(ctx, req.(*FetchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -596,7 +595,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(protobuf.FetchRequest)
|
||||
in := new(FetchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -608,7 +607,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.(*protobuf.FetchRequest))
|
||||
return srv.(DiskServer).SearchFiles(ctx, req.(*FetchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user