sourceforge

package
v0.0.0-...-636a148 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	XMLName xml.Name `xml:"channel"`
	Files   string   `xml:"files,attr"`
	Media   string   `xml:"media,attr"`
	Doap    string   `xml:"doap,attr"`
	SF      string   `xml:"sf,attr"`

	Title       string `xml:"title"`
	Link        string `xml:"link"`
	Description *struct {
		Data string `xml:",cdata"`
	} `xml:"description"`
	PubDate        string `xml:"pubDate"`
	ManagingEditor string `xml:"managingEditor"`
	Docs           string `xml:"docs"`

	Items []*Item `xml:"item"`
}

type Content

type Content struct {
	XMLName  xml.Name `xml:"content"`
	Media    string   `xml:"media,attr"`
	Type     string   `xml:"type,attr"`
	URL      string   `xml:"url,attr"`
	FileSize int      `xml:"filesize,attr"`

	Hash *Hash `xml:"hash"`
}

type ExtraInfo

type ExtraInfo struct {
	XMLName xml.Name `xml:"extra-info"`
	Files   string   `xml:"files,attr"`
	Data    string   `xml:",innerxml"`
}

type Hash

type Hash struct {
	XMLName xml.Name `xml:"hash"`
	Algo    string   `xml:"algo,attr"`
	Data    string   `xml:",innerxml"`
}

type Item

type Item struct {
	XMLName xml.Name `xml:"item"`
	Title   *struct {
		Data string `xml:",cdata"`
	} `xml:"title"`
	Link        string `xml:"link"`
	Guid        string `xml:"guid"`
	PubDate     string `xml:"pubDate"`
	Description *struct {
		Data string `xml:",cdata"`
	} `xml:"description"`

	SfFileId  *SfFileId  `xml:"sf-file-id"`
	ExtraInfo *ExtraInfo `xml:"extra-info"`
	Content   *Content   `xml:"content"`
}

type RSS

type RSS struct {
	XMLName xml.Name `xml:"rss"`
	Content string   `xml:"content,attr"`
	Files   string   `xml:"files,attr"`
	Media   string   `xml:"media,attr"`
	Doap    string   `xml:"doap,attr"`
	SF      string   `xml:"sf,attr"`
	Version string   `xml:"version,attr"`

	Channel *Channel `xml:"channel"`
}

type SfFileId

type SfFileId struct {
	XMLName xml.Name `xml:"sf-file-id"`
	Files   string   `xml:"files,attr"`
	Data    string   `xml:",innerxml"`
}

type Sourceforge

type Sourceforge struct {
	// contains filtered or unexported fields
}

func NewSourceforge

func NewSourceforge(rssURL string) *Sourceforge

func (*Sourceforge) SendUpdate

func (r *Sourceforge) SendUpdate()

func (*Sourceforge) UpdateItem

func (r *Sourceforge) UpdateItem()

Jump to

Keyboard shortcuts

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