fileservice

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileService

type FileService struct {
	// contains filtered or unexported fields
}

func (*FileService) CheckFileExistedAndGetFile

func (s *FileService) CheckFileExistedAndGetFile(ctx context.Context, fileCtx *api.FileContext) (int64, bool, error)

func (*FileService) GetInfoById

func (s *FileService) GetInfoById(ctx context.Context, domainName, bizName string, fileId int64) (*file.File, error)

func (*FileService) GetProgressRate4SlicingPut

func (s *FileService) GetProgressRate4SlicingPut(ctx context.Context, uploadId string, fileCtx *api.FileContext) (map[string]bool, error)

func (*FileService) MergeFileParts

func (s *FileService) MergeFileParts(ctx context.Context, uploadId string, fileCtx *api.FileContext) error

func (*FileService) PreSignGet

func (s *FileService) PreSignGet(ctx context.Context, fileCtx *api.FileContext) (string, error)

func (*FileService) PreSignPut

func (s *FileService) PreSignPut(ctx context.Context, fileCtx *api.FileContext) (string, int64, error)

func (*FileService) PreSignSlicingPut

func (s *FileService) PreSignSlicingPut(ctx context.Context, fileCtx *api.FileContext) (*slicingfile.SlicingFile, error)

func (*FileService) RemoveFile

func (s *FileService) RemoveFile(ctx context.Context, fileCtx *api.FileContext) error

func (*FileService) ReportUploaded

func (s *FileService) ReportUploaded(ctx context.Context, fileCtx *api.FileContext) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL