Documentation ¶
Index ¶
- type VolumeService
- func (s *VolumeService) CreateFile(ctx context.Context, req *storageV1.CreateFileReq) (*v1.Empty, error)
- func (s *VolumeService) CreateVolume(ctx context.Context, req *storageV1.CreateVolumeReq) (*storageV1.Volume, error)
- func (s *VolumeService) DelFile(ctx context.Context, req *storageV1.DelFileReq) (*v1.Empty, error)
- func (s *VolumeService) DeleteVolume(ctx context.Context, req *storageV1.DeleteVolumeReq) (*v1.Empty, error)
- func (s *VolumeService) FileData(ctx context.Context, req *storageV1.FileReq) (*storageV1.FileDataRes, error)
- func (s *VolumeService) FileDown(ctx context.Context, req *storageV1.FileReq) (*storageV1.FileDownRes, error)
- func (s *VolumeService) ListFile(ctx context.Context, req *storageV1.ListFileReq) (*storageV1.ListFileReply, error)
- func (s *VolumeService) ListVolume(ctx context.Context, req *storageV1.ListVolumeReq) (*storageV1.ListVolumeReply, error)
- func (s *VolumeService) MoveAndCopyFile(ctx context.Context, req *storageV1.MoveCopyFileReq) (*v1.Empty, error)
- func (s *VolumeService) RenameFile(ctx context.Context, req *storageV1.RenameFileReq) (*v1.Empty, error)
- func (s *VolumeService) SaveFile(ctx context.Context, req *storageV1.SaveFileReq) (*v1.Empty, error)
- func (s *VolumeService) ServeHTTP(w http2.ResponseWriter, r *http2.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeService ¶
type VolumeService struct { storageV1.UnimplementedVolumeServiceServer // contains filtered or unexported fields }
func NewVolumeService ¶
func NewVolumeService(uc *storage.StorageUseCase) *VolumeService
func (*VolumeService) CreateFile ¶
func (s *VolumeService) CreateFile(ctx context.Context, req *storageV1.CreateFileReq) (*v1.Empty, error)
创建文件
func (*VolumeService) CreateVolume ¶
func (s *VolumeService) CreateVolume(ctx context.Context, req *storageV1.CreateVolumeReq) (*storageV1.Volume, error)
创建存储卷
func (*VolumeService) DelFile ¶
func (s *VolumeService) DelFile(ctx context.Context, req *storageV1.DelFileReq) (*v1.Empty, error)
删除文件
func (*VolumeService) DeleteVolume ¶
func (s *VolumeService) DeleteVolume(ctx context.Context, req *storageV1.DeleteVolumeReq) (*v1.Empty, error)
func (*VolumeService) FileData ¶
func (s *VolumeService) FileData(ctx context.Context, req *storageV1.FileReq) (*storageV1.FileDataRes, error)
获取文件内容
func (*VolumeService) FileDown ¶
func (s *VolumeService) FileDown(ctx context.Context, req *storageV1.FileReq) (*storageV1.FileDownRes, error)
获取下载地址
func (*VolumeService) ListFile ¶
func (s *VolumeService) ListFile(ctx context.Context, req *storageV1.ListFileReq) (*storageV1.ListFileReply, error)
文件列表
func (*VolumeService) ListVolume ¶
func (s *VolumeService) ListVolume(ctx context.Context, req *storageV1.ListVolumeReq) (*storageV1.ListVolumeReply, error)
存储卷列表
func (*VolumeService) MoveAndCopyFile ¶
func (s *VolumeService) MoveAndCopyFile(ctx context.Context, req *storageV1.MoveCopyFileReq) (*v1.Empty, error)
移动/复制文件
func (*VolumeService) RenameFile ¶
func (s *VolumeService) RenameFile(ctx context.Context, req *storageV1.RenameFileReq) (*v1.Empty, error)
重命名文件
func (*VolumeService) SaveFile ¶
func (s *VolumeService) SaveFile(ctx context.Context, req *storageV1.SaveFileReq) (*v1.Empty, error)
创建文件
func (*VolumeService) ServeHTTP ¶
func (s *VolumeService) ServeHTTP(w http2.ResponseWriter, r *http2.Request)
http 文件上传
Click to show internal directories.
Click to hide internal directories.