database

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(db *sql.DB) error

func DeleteScan

func DeleteScan(db *sql.DB, id int) error

func MakeDB

func MakeDB(path string) (*sql.DB, error)

func SaveScan

func SaveScan(db *sql.DB, scan ScanResult) error

Types

type ScanResult

type ScanResult struct {
	Id          int
	Timestamp   string
	CommandType string
	Target      string
	RawResult   string
	Summary     string
}

func GetScan

func GetScan(db *sql.DB, id int) (ScanResult, error)

func ListScans

func ListScans(db *sql.DB) ([]ScanResult, error)

Jump to

Keyboard shortcuts

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