app

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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 CreateFileScanListCmd struct {
	RepoId   int64
	Owner    domain.Account
	Branch   string
	RepoName string
	Added    []string
}

type FileScanService

FileScanService is the app service of file scan.

type FilescanDTO

type FilescanDTO struct {
	ModerationStatus string `json:"moderation_status"`
	ModerationResult string `json:"moderation_result"`
}

type LaunchModerationCmd

type LaunchModerationCmd struct {
	RepoId   int64
	Owner    domain.Account
	Branch   string
	RepoName string
	Modified []string
}

type RemoveFileScanListCmd

type RemoveFileScanListCmd struct {
	RepoId  int64
	Removed []string
}

Jump to

Keyboard shortcuts

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