repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScanRepo

type ScanRepo struct {
	// contains filtered or unexported fields
}
var ScanRepository *ScanRepo

func NewScanRepository

func NewScanRepository(db *sqlx.DB) *ScanRepo

NewScanRepository creates a new ScanRepository

func (*ScanRepo) CompleteScan

func (repository *ScanRepo) CompleteScan(scanId uint) error

func (*ScanRepo) GetScanResult

func (repository *ScanRepo) GetScanResult(scanId uint) (entities.ScanModel, error)

func (*ScanRepo) GetScans

func (repository *ScanRepo) GetScans() ([]entities.ScanModel, error)

func (*ScanRepo) SaveScanResult

func (repository *ScanRepo) SaveScanResult(job *entities.JobModel, scan entities.ScanModel) (uint, error)

SaveScanResult saves the scan result in the database

Jump to

Keyboard shortcuts

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