rss

package
v0.0.0-...-e1af42c Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(opts ...Option) error

Types

type Item

type Item struct {
	About       string `xml:"about,attr" json:"about,omitempty"`
	Title       string `xml:"title" json:"title,omitempty"`
	Link        string `xml:"link" json:"link,omitempty"`
	Description string `xml:"description" json:"description,omitempty"`
	Identifier  string `xml:"identifier" json:"identifier,omitempty"`
	References  []struct {
		Text   string `xml:",chardata" json:"text,omitempty"`
		Source string `xml:"source,attr" json:"source,omitempty"`
		ID     string `xml:"id,attr" json:"id,omitempty"`
		Title  string `xml:"title,attr" json:"title,omitempty"`
	} `xml:"references" json:"references,omitempty"`
	CPE []struct {
		Text    string `xml:",chardata" json:"text,omitempty"`
		Version string `xml:"version,attr" json:"version,omitempty"`
		Vendor  string `xml:"vendor,attr" json:"vendor,omitempty"`
		Product string `xml:"product,attr" json:"product,omitempty"`
	} `xml:"cpe" json:"cpe,omitempty"`
	CVSS []struct {
		Version  string `xml:"version,attr" json:"version,omitempty"`
		Score    string `xml:"score,attr" json:"score,omitempty"`
		Type     string `xml:"type,attr" json:"type,omitempty"`
		Severity string `xml:"severity,attr" json:"severity,omitempty"`
		Vector   string `xml:"vector,attr" json:"vector,omitempty"`
	} `xml:"cvss" json:"cvss,omitempty"`
	Date     string `xml:"date" json:"date,omitempty"`
	Issued   string `xml:"issued" json:"issued,omitempty"`
	Modified string `xml:"modified" json:"modified,omitempty"`
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDataURL

func WithDataURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

Jump to

Keyboard shortcuts

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