Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) BulkUpsertCVE(ctx context.Context, cves []*model.CVE) error
- func (c *Client) BulkUpsertEPSS(ctx context.Context, records []*model.EPSS) error
- func (c *Client) BulkUpsertKEV(ctx context.Context, records []*model.KEV) error
- func (c *Client) BulkUpsertPoc(ctx context.Context, pocs []*model.PoC) error
- func (c *Client) CountCVE(ctx context.Context, where string, args []any) (int64, error)
- func (c *Client) DeleteEPSS(ctx context.Context, updatedTime time.Time) error
- func (c *Client) SelectCVEByFilter(ctx context.Context, where string, args []any, limit int, offset int, ...) ([]*model.CVE, error)
- func (c *Client) SelectCveByID(ctx context.Context, cveID *string) (*model.CVE, error)
- func (c *Client) SelectEPSSByCVEID(ctx context.Context, cveID *string) (*model.EPSS, error)
- func (c *Client) SelectKEVByCVEID(ctx context.Context, cveID *string) (*model.KEV, error)
- func (c *Client) SelectPoCByCVEID(ctx context.Context, cveID *string) ([]*model.PoC, error)
- func (c *Client) SelectPoCByID(ctx context.Context, cveID *string, repositoryID *uint64) (*model.PoC, error)
- type Config
Constants ¶
View Source
const (
BULK_INSERT_SIZE = 1000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) BulkUpsertCVE ¶
func (*Client) BulkUpsertEPSS ¶
func (*Client) BulkUpsertKEV ¶
func (*Client) BulkUpsertPoc ¶
func (*Client) DeleteEPSS ¶
func (*Client) SelectCVEByFilter ¶
func (*Client) SelectCveByID ¶
func (*Client) SelectEPSSByCVEID ¶
func (*Client) SelectKEVByCVEID ¶
func (*Client) SelectPoCByCVEID ¶
Click to show internal directories.
Click to hide internal directories.