Documentation
¶
Index ¶
- type ContentRepo
- func (repository *ContentRepo) CreateContentStorage(storage entities.ContentStorageModel) error
- func (repository *ContentRepo) FindContentByHash(hashedBody string) (entities.ContentModel, error)
- func (repository *ContentRepo) GetScanContent(contentId uint) (entities.ContentModel, error)
- func (repository *ContentRepo) GetScanContents(scanId uint) ([]viewmodels.Contents, error)
- func (repository *ContentRepo) IncrementAccessCount(contentID uint) error
- func (repository *ContentRepo) SaveContentResult(content entities.ContentModel) (uint, error)
- type FindingRepo
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
Click to show internal directories.
Click to hide internal directories.