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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentRepo

type ContentRepo struct {
	// contains filtered or unexported fields
}
var ContentRepository *ContentRepo

func NewContentRepo

func NewContentRepo(db *sqlx.DB) *ContentRepo

func (*ContentRepo) CreateContentStorage

func (repository *ContentRepo) CreateContentStorage(storage entities.ContentStorageModel) error

func (*ContentRepo) FindContentByHash

func (repository *ContentRepo) FindContentByHash(hashedBody string) (entities.ContentModel, error)

func (*ContentRepo) GetScanContent

func (repository *ContentRepo) GetScanContent(contentId uint) (entities.ContentModel, error)

func (*ContentRepo) GetScanContents

func (repository *ContentRepo) GetScanContents(scanId uint) ([]viewmodels.Contents, error)

func (*ContentRepo) IncrementAccessCount

func (repository *ContentRepo) IncrementAccessCount(contentID uint) error

func (*ContentRepo) SaveContentResult

func (repository *ContentRepo) SaveContentResult(content entities.ContentModel) (uint, error)

type FindingRepo

type FindingRepo struct {
	// contains filtered or unexported fields
}
var FindingRepository *FindingRepo

func NewFindingRepo

func NewFindingRepo(db *sqlx.DB) *FindingRepo

func (*FindingRepo) GetScanFindings

func (repository *FindingRepo) GetScanFindings(scanID uint) ([]entities.FindingModel, error)

func (*FindingRepo) SaveFindingResult

func (repository *FindingRepo) SaveFindingResult(job generalEntities.JobModel, findings []utils.RegexReturn) error

Jump to

Keyboard shortcuts

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