Documentation ¶
Overview ¶
Package app the app of fileScan
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileScanService ¶
func NewFileScanService( f repo.FileScanAdapter, p filescan.ModerationEventPublisher, ) *fileScanService
Types ¶
type CmdToUpdateFileScan ¶
type CmdToUpdateFileScan struct { Id int64 Status primitive.FileModerationResult FileType string ModerationResult primitive.FileModerationResult }
// CmdToUpdateFileScan is the command to update a file scan.
type CreateFileScanListCmd ¶
type FileScanService ¶
type FileScanService interface { Get(string, string) ([]filescan.FilescanRes, error) Update(context.Context, CmdToUpdateFileScan) error RemoveList(context.Context, RemoveFileScanListCmd) error CreateList(context.Context, CreateFileScanListCmd) error LaunchModeration(context.Context, LaunchModerationCmd) error }
FileScanService is the app service of file scan.
type FilescanDTO ¶
type LaunchModerationCmd ¶
type RemoveFileScanListCmd ¶
Click to show internal directories.
Click to hide internal directories.