enrichment

package
v0.55.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIssue

func CreateIssue(ctx context.Context, conn *db.DB, eI *v1.EnrichedIssue) error

CreateIssue creates the given enriched issue on the database.

func DeleteIssueByHash

func DeleteIssueByHash(conn *db.DB, hash string) error

DeleteIssueByHash deletes an issue given its hash.

func Dump

func Dump(conn *db.DB) []*v1.EnrichedIssue

Dump is an internal debug method.

func EnrichIssue

func EnrichIssue(conn *db.DB, i *v1.Issue) (*v1.EnrichedIssue, error)

EnrichIssue enriches a given issue, returning an enriched issue once processed.

func GetHash

func GetHash(i *v1.Issue) string

GetHash returns the hash of an issue. TODO: return an err from this func.

func GetIssueByHash

func GetIssueByHash(conn *db.DB, hash string) (*v1.EnrichedIssue, error)

GetIssueByHash returns an issue given its hash.

func NewEnrichedIssue

func NewEnrichedIssue(i *v1.Issue) *v1.EnrichedIssue

NewEnrichedIssue returns a new enriched issue from a raw issue.

func UpdateEnrichedIssue

func UpdateEnrichedIssue(i *v1.EnrichedIssue) *v1.EnrichedIssue

UpdateEnrichedIssue updates a given enriched issue.

func UpdateIssue

func UpdateIssue(ctx context.Context, conn *db.DB, eI *v1.EnrichedIssue) error

UpdateIssue updates a given enriched issue on the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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