Help us shape the future of Go! Take the 2026 Go Developer Survey

events

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVulnEventController

func NewVulnEventController(vulnEventRepository core.VulnEventRepository, assetVersionRepository core.AssetVersionRepository) *vulnEventController

Types

type VulnEventDTO

type VulnEventDTO struct {
	ID       uuid.UUID            `json:"id"`
	Type     models.VulnEventType `json:"type"`
	VulnID   string               `json:"vulnId"`
	VulnType models.VulnType      `json:"vulnType"`
	UserID   string               `json:"userId"`

	Justification           *string                            `json:"justification"`
	MechanicalJustification models.MechanicalJustificationType `json:"mechanicalJustification"`

	ArbitraryJSONData map[string]any `json:"arbitraryJSONData"`

	CreatedAt time.Time `json:"createdAt"`

	AssetVersionName  string `json:"assetVersionName"`
	AssetVersionSlug  string `json:"assetVersionSlug"`
	VulnerabilityName string `json:"vulnerabilityName"`
	PackageName       string `json:"packageName"`
	URI               string `json:"uri"`
}

func (VulnEventDTO) ToModel

func (dto VulnEventDTO) ToModel() models.VulnEvent

Jump to

Keyboard shortcuts

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