Versions in this module Expand all Collapse all v3 v3.0.1 Jun 12, 2026 Changes in this version + type NVDResponse struct + Format string + ResultsPerPage int + StartIndex int + Timestamp string + TotalResults int + Version string + Vulnerabilities []struct{ ... } + type SecurityDataDownloader struct + func NewSecurityDataDownloader(logger *log.Logger) *SecurityDataDownloader + func (s *SecurityDataDownloader) CheckForUpdates(ctx context.Context, dataSource string, lastUpdate time.Time) (bool, *time.Time, error) + func (s *SecurityDataDownloader) DownloadATTACKDataset(ctx context.Context) ([]models.ATTACKTechnique, []models.ATTACKTactic, error) + func (s *SecurityDataDownloader) DownloadIncrementalNVD(ctx context.Context, lastUpdate time.Time) ([]models.NVDCVE, error) + func (s *SecurityDataDownloader) DownloadNVDDataset(ctx context.Context) ([]models.NVDCVE, error) + func (s *SecurityDataDownloader) DownloadOWASPDataset(ctx context.Context) ([]models.OWASPProcedure, error) + func (s *SecurityDataDownloader) GetDataSize() map[string]interface{} + type SecurityRetrievalService struct + func NewSecurityRetrievalService(securityRepo repository.SecurityRepositoryInterface, logger *log.Logger) *SecurityRetrievalService + func (s *SecurityRetrievalService) QuerySecurityData(ctx context.Context, req models.SecurityQueryRequest) (*models.SecurityQueryResponse, error) + type SecurityUpdateService struct + func NewSecurityUpdateService(downloader *SecurityDataDownloader, ...) *SecurityUpdateService + func (s *SecurityUpdateService) CheckAndUpdate(ctx context.Context, strategy UpdateStrategy) error + func (s *SecurityUpdateService) CheckAndUpdateAll(ctx context.Context) error + func (s *SecurityUpdateService) ForceFullUpdate(ctx context.Context) error + type UpdateStrategy struct + CheckInterval time.Duration + DataSource string + ForceFullUpdate bool + MaxAge time.Duration + func GetDefaultUpdateStrategies() []UpdateStrategy Other modules containing this package github.com/rainmana/tinybrain