db

package
v0.0.0-...-7a94dbe Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteReport

func DeleteReport(db *sql.DB, sha256 string) error

func InsertReport

func InsertReport(db *sql.DB, report *VirusTotalReport) error

func SetupDatabase

func SetupDatabase() *sql.DB

func UpdateReport

func UpdateReport(db *sql.DB, report *VirusTotalReport) error

Types

type VirusTotalReport

type VirusTotalReport struct {
	FileType             string          `json:"file_type"`
	SHA256               string          `json:"sha256"`
	SHA1                 string          `json:"sha1"`
	MD5                  string          `json:"md5"`
	MeaningfulName       string          `json:"meaningful_name"`
	TypeDescription      string          `json:"type_description"`
	TypeExtension        string          `json:"type_extension"`
	LastModificationDate time.Time       `json:"last_modification_date"`
	FirstSubmissionDate  time.Time       `json:"first_submission_date"`
	LastSubmissionDate   time.Time       `json:"last_submission_date"`
	Size                 int64           `json:"size"`
	LastAnalysisDate     time.Time       `json:"last_analysis_date"`
	LastAnalysisStats    json.RawMessage `json:"last_analysis_stats"`
	LastAnalysisResults  json.RawMessage `json:"last_analysis_results"`
}

func GetReport

func GetReport(db *sql.DB, sha256 string) (*VirusTotalReport, error)

Jump to

Keyboard shortcuts

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