appcast

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APCChannel added in v0.0.10

type APCChannel struct {
	Channel struct {
		Title string           `xml:"title"`
		Item  []APCChannelItem `xml:"item"`
	} `xml:"channel"`
}

type APCChannelItem added in v0.0.10

type APCChannelItem struct {
	Title                string `xml:"title"`
	PubDate              string `xml:"pubDate"`
	Channel              string `xml:"channel"`
	Version              string `xml:"version"`
	ShortVersionString   string `xml:"shortVersionString"`
	MinimumSystemVersion string `xml:"minimumSystemVersion"`
	Enclosure            struct {
		URL    string `xml:"url,attr"`
		Length string `xml:"length,attr"`
		Type   string `xml:"type,attr"`
	} `xml:"enclosure"`
}

type APCSparkle

type APCSparkle struct {
	XMLName xml.Name `xml:"rss"`
	Sparkle string   `xml:"sparkle,attr"`
	Version string   `xml:"version,attr"`
	APCChannel
}

type Appcast

type Appcast struct {
	IAppcast

	ContentXML      APCSparkle
	ReleaseChannels []ReleaseChannel
	// contains filtered or unexported fields
}

type GDAppcast

type GDAppcast struct {
	Appcast
}

func NewGDAppcast

func NewGDAppcast() (*GDAppcast, error)

func (*GDAppcast) Content

func (apc *GDAppcast) Content() (APCSparkle, error)

func (*GDAppcast) Get

func (apc *GDAppcast) Get(client client.IClient, url string) error

func (*GDAppcast) GetReleaseChannel added in v0.0.10

func (apc *GDAppcast) GetReleaseChannel(name string) (ReleaseChannel, error)

type IAppcast

type IAppcast interface {
	Get(client client.IClient, url string) error
	Content() (APCSparkle, error)

	GetReleaseChannel(name string) (ReleaseChannel, error)
	// contains filtered or unexported methods
}

type ReleaseChannel added in v0.0.10

type ReleaseChannel struct {
	Name   string
	Items  []APCChannelItem
	Latest APCChannelItem
}

Jump to

Keyboard shortcuts

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