decorator

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileDomainServiceWithTracing

func NewFileDomainServiceWithTracing(
	fileRepository fileRepo.FileRepository,
) fileDomainSvc.FileDomainService

NewFileDomainServiceWithTracing 文件领域服务链路追踪装饰器

func NewUploaderDomainServiceWithTracing

func NewUploaderDomainServiceWithTracing(
	fileRepository fileRepo.FileRepository,
	uploaderRepository fileRepo.UploaderRepository,
	storage filePort.FileStorage,
	policy filePort.FilePolicy,
) fileDomainSvc.UploaderDomainService

NewUploaderDomainServiceWithTracing 文件上传领域服务链路追踪装饰器

Types

type TracedFileDomainService

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

func (*TracedFileDomainService) CheckFileNameAvailable

func (t *TracedFileDomainService) CheckFileNameAvailable(ctx context.Context, name string, excludeId uuid.UUID) error

func (*TracedFileDomainService) Delete

func (t *TracedFileDomainService) Delete(ctx context.Context, id uuid.UUID, ids []uuid.UUID) error

func (*TracedFileDomainService) Info

func (*TracedFileDomainService) List

func (t *TracedFileDomainService) List(ctx context.Context, mediaType fileVO.MediaType, keyword, orderBy, orderType string, page, pageSize int) ([]fileModel.File, int64, error)

type TracedUploaderDomainService

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

func (*TracedUploaderDomainService) CompleteMultipartUpload

func (t *TracedUploaderDomainService) CompleteMultipartUpload(ctx context.Context, uploadId string, parts []fileModel.Part) (*fileModel.File, error)

func (*TracedUploaderDomainService) InitMultipartUpload

func (t *TracedUploaderDomainService) InitMultipartUpload(ctx context.Context, filename string, fileSize int64) (string, string, error)

func (*TracedUploaderDomainService) MultipartUploadStatus

func (t *TracedUploaderDomainService) MultipartUploadStatus(ctx context.Context, uploadId string) ([]fileModel.Part, string, error)

func (*TracedUploaderDomainService) UploadFile

func (*TracedUploaderDomainService) UploadPart

func (t *TracedUploaderDomainService) UploadPart(ctx context.Context, path, uploadId string, partNumber int, file *multipart.FileHeader) (*fileModel.Part, error)

Jump to

Keyboard shortcuts

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