virus_detection

package
v0.0.0-...-b285d58 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VirusScanDataTypeQuick int32 = 6057
	VirusScanDataTypeFull  int32 = 6057
	VirusScanDataTypeFile  int32 = 6053
)
View Source
const (
	VirusScanTaskTypeQuick = "scan_quick"
	VirusScanTaskTypeFull  = "scan_full"
	VirusScanTaskTypeFile  = "scan_file"
)

Variables

Functions

func InitVirusDetection

func InitVirusDetection()

func UpdateVirusRunningTaskStatus

func UpdateVirusRunningTaskStatus(c context.Context)

********************************* Update task status *********************************

func UpdateVirusTaskStatistics

func UpdateVirusTaskStatistics(c context.Context)

Types

type VirusScanTaskDataContent

type VirusScanTaskDataContent struct {
	Exe     string `json:"exe,omitempty" bson:"exe,omitempty"`
	Mode    string `json:"mode,omitempty" bson:"mode,omitempty"`
	CpuIdle string `json:"cpu_idle,omitempty" bson:"cpu_idle,omitempty"`
	Timeout string `json:"timeout,omitempty" bson:"timeout,omitempty"`
}

type VirusScanTaskStatistics

type VirusScanTaskStatistics struct {
	RunningTaskNum   int   `json:"running_task_num" bson:"running_task_num"`
	FininshedTaskNum int   `json:"finished_task_num" bson:"finished_task_num"`
	LastScanTime     int64 `json:"last_scan_time" bson:"last_scan_time"`
}

type VirusTaskStatAggresData

type VirusTaskStatAggresData struct {
	Status       string `json:"status" bson:"status"`
	Count        int    `json:"count" bson:"count"`
	LastScanTime int64  `json:"last_scan_time" bson:"last_scan_time"`
}

Jump to

Keyboard shortcuts

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