model
import "redn3t.com/odirscan/model"
Index
type AnalysisFinding
type AnalysisFinding struct {
Url string `json:"url"`
Filename string `json:"filename"`
Extension string `json:"extension"`
Mime string `json:"mime"`
Size int64 `json:"size"`
InterestScore float64 `json:"interest_score"`
Tags []string `json:"tags"`
}
type ScanEntry
type ScanEntry struct {
ScanID string `json:"scan_id"`
UserID string `json:"user_id"`
Status ScanStatus `json:"status"`
URLs []string `json:"urls"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
Result []ScanFinding `json:"result,omitempty"`
}
type ScanFinding
type ScanFinding struct {
Url string `json:"url"`
ScanTime time.Time `json:"scan_time"`
ContentType string `json:"content_type"`
ContentLength int64 `json:"content_length"`
LastModified time.Time `json:"last_modified"`
}
type ScanResult
type ScanResult struct {
Stats ScanStats `json:"stats"`
Findings []ScanFinding `json:"findings"`
}
type ScanStats
type ScanStats struct {
DurationMs int64 `json:"duration_ms"`
FindingCount int `json:"finding_count"`
FolderCount int `json:"folder_count"`
SkippedCount int `json:"skipped_count"`
ErrorCount int `json:"error_count"`
TotalBytes int64 `json:"total_bytes"`
}
type ScanStatus
type ScanStatus string
const (
ScanStatusPending ScanStatus = "PENDING"
ScanStatusRunning ScanStatus = "RUNNING"
ScanStatusDone ScanStatus = "DONE"
ScanStatusFailed ScanStatus = "FAILED"
)
Generated by gomarkdoc