podcast

package
v0.0.0-...-5fc14eb Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	AttrText string   `xml:"text,attr"`
	XMLName  xml.Name `xml:"category,omitempty"`
}

type Channel

type Channel struct {
	Author      string      `xml:"author,omitempty"`
	Category    []*Category `xml:"category,omitempty"`
	Copyright   string      `xml:"copyright,omitempty"`
	Description string      `xml:"description,omitempty"`
	Explicit    string      `xml:"explicit,omitempty"`
	Image       *Image      `xml:"image,omitempty"`
	Item        []*Item     `xml:"item,omitempty"`
	Language    string      `xml:"language,omitempty"`
	LastBuild   *Timestamp  `xml:"lastBuildDate,omitempty"`
	Link        string      `xml:"link,omitempty"`
	Owner       *Owner      `xml:"owner,omitempty"`
	PubString   string      `xml:"pubDate,omitempty"` // TODO: Parse
	Subtitle    string      `xml:"subtitle,omitempty"`
	Summary     string      `xml:"summary,omitempty"`
	Title       string      `xml:"title,omitempty"`
}

type Duration

type Duration time.Duration

func (*Duration) String

func (dur *Duration) String() string

func (*Duration) UnmarshalXML

func (dur *Duration) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type Enclosure

type Enclosure struct {
	Length   int    `xml:"length,attr"`
	MIMEType string `xml:"type,attr"`
	URL      string `xml:"url,attr"`
}

type Guid

type Guid struct {
	AttrIsPermaLink string `xml:"isPermaLink,attr"`
	Text            string `xml:",chardata"`
}

type Image

type Image struct {
	AttrHref string   `xml:"href,attr"`
	XMLName  xml.Name `xml:"image,omitempty"`
}

type Item

type Item struct {
	Author      string     `xml:"author,omitempty"`
	Category    string     `xml:"category,omitempty"`
	Description string     `xml:"description,omitempty"`
	Duration    Duration   `xml:"duration,omitempty"`
	Enclosure   *Enclosure `xml:"enclosure,omitempty"`
	Guid        *Guid      `xml:"guid,omitempty"`
	Keywords    Keywords   `xml:"keywords,omitempty"` // TODO: Parse
	PubDate     Timestamp  `xml:"pubDate,omitempty"`
	Title       string     `xml:"title,omitempty"`
}

type Keywords

type Keywords []string

func (*Keywords) UnmarshalXML

func (kw *Keywords) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

type Owner

type Owner struct {
	Email   string   `xml:"email,omitempty"`
	Name    string   `xml:"name,omitempty"`
	XMLName xml.Name `xml:"owner,omitempty"`
}

type RSS

type RSS struct {
	AttrXmlnsItunes string   `xml:"xmlns itunes,attr"`
	AttrVersion     string   `xml:"version,attr"`
	Channel         *Channel `xml:"channel,omitempty"`
}

type Timestamp

type Timestamp struct {
	time.Time
}

func (*Timestamp) UnmarshalXML

func (ts *Timestamp) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error

Jump to

Keyboard shortcuts

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