Documentation
¶
Index ¶
- Constants
- Variables
- type AINote
- type Article
- type ArticleSummary
- type CVE
- type CandidateArticle
- type ClusterRow
- type DigestArticle
- type DigestCVE
- type DigestCluster
- type FetchState
- type ListFilter
- type SourceInput
- type SourceRow
- type Store
- func (s *Store) AINoteExists(clusterID int64, provider string) (bool, error)
- func (s *Store) AINotesForCluster(clusterID int64) ([]AINote, error)
- func (s *Store) ArticleCVEMap() (map[int64][]string, error)
- func (s *Store) ArticlesForCVE(id string) ([]ArticleSummary, error)
- func (s *Store) CVEsNeedingEnrichment(now, positiveTTL, negativeTTL int64) ([]string, error)
- func (s *Store) Close() error
- func (s *Store) ClusterCandidates(since int64) ([]CandidateArticle, error)
- func (s *Store) CountArticles() (int, error)
- func (s *Store) DB() *sql.DB
- func (s *Store) DigestClusters(since int64) ([]DigestCluster, error)
- func (s *Store) GetCVE(id string) (CVE, error)
- func (s *Store) GetFetchState(sourceID int64) (FetchState, bool, error)
- func (s *Store) GetSourceByName(name string) (SourceRow, error)
- func (s *Store) InsertAINote(n AINote) error
- func (s *Store) InsertArticle(a Article) (int64, error)
- func (s *Store) LatestAINotes() (map[int64]AINote, error)
- func (s *Store) LinkArticleCVE(articleID int64, cveID string) error
- func (s *Store) ListArticles(f ListFilter) ([]ArticleSummary, error)
- func (s *Store) NewlyFetchedClusters(sinceFetched int64) ([]DigestCluster, error)
- func (s *Store) ReplaceClusters(rows []ClusterRow) error
- func (s *Store) UpdateCVEEnrichment(c CVE) error
- func (s *Store) UpsertCVEStub(id string) error
- func (s *Store) UpsertFetchState(sourceID int64, fs FetchState) error
- func (s *Store) UpsertSource(in SourceInput) (int64, error)
- func (s *Store) Version() int
Constants ¶
View Source
const ( EnrichStatusOK = "ok" EnrichStatusNotFound = "not_found" )
Variables ¶
View Source
var ErrDuplicate = errors.New("store: article already exists")
Functions ¶
This section is empty.
Types ¶
type ArticleSummary ¶
type CandidateArticle ¶
type ClusterRow ¶
type DigestArticle ¶
type DigestCluster ¶
type FetchState ¶
type ListFilter ¶
type SourceInput ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AINoteExists ¶
func (*Store) AINotesForCluster ¶
func (*Store) ArticlesForCVE ¶
func (s *Store) ArticlesForCVE(id string) ([]ArticleSummary, error)
func (*Store) CVEsNeedingEnrichment ¶
func (*Store) ClusterCandidates ¶
func (s *Store) ClusterCandidates(since int64) ([]CandidateArticle, error)
func (*Store) CountArticles ¶
func (*Store) DigestClusters ¶
func (s *Store) DigestClusters(since int64) ([]DigestCluster, error)
func (*Store) GetFetchState ¶
func (s *Store) GetFetchState(sourceID int64) (FetchState, bool, error)
func (*Store) InsertAINote ¶
func (*Store) ListArticles ¶
func (s *Store) ListArticles(f ListFilter) ([]ArticleSummary, error)
func (*Store) NewlyFetchedClusters ¶
func (s *Store) NewlyFetchedClusters(sinceFetched int64) ([]DigestCluster, error)
func (*Store) ReplaceClusters ¶
func (s *Store) ReplaceClusters(rows []ClusterRow) error
func (*Store) UpdateCVEEnrichment ¶
func (*Store) UpsertCVEStub ¶
func (*Store) UpsertFetchState ¶
func (s *Store) UpsertFetchState(sourceID int64, fs FetchState) error
func (*Store) UpsertSource ¶
func (s *Store) UpsertSource(in SourceInput) (int64, error)
Click to show internal directories.
Click to hide internal directories.