Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB Database implements DB
func (*DB) CreateIssue ¶
CreateIssue creates the given enriched issue on the database
func (*DB) DeleteIssueByHash ¶ added in v0.10.0
DeleteIssueByHash deletes an issue given its hash
func (*DB) GetIssueByHash ¶
func (db *DB) GetIssueByHash(hash string) (*v1.EnrichedIssue, error)
GetIssueByHash returns an issue given its hash
func (*DB) UpdateIssue ¶
UpdateIssue updates a given enriched issue on the database
type EnrichDatabase ¶ added in v0.10.0
type EnrichDatabase interface { GetIssueByHash(string) (*v1.EnrichedIssue, error) CreateIssue(context.Context, *v1.EnrichedIssue) error UpdateIssue(context.Context, *v1.EnrichedIssue) error DeleteIssueByHash(string) error }
EnrichDatabase represents the db methods that are used for the enricher
Click to show internal directories.
Click to hide internal directories.