Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AtomName is the name of the Atom provider.
AtomName = "atom"
)
View Source
const (
// GiteaName is the name of the Atom provider.
GiteaName = "gitea"
)
View Source
const (
// RDFName is the name of the Atom provider.
RDFName = "rdf"
)
View Source
const (
// RSSName is the name of the Atom provider.
RSSName = "rss"
)
Variables ¶
This section is empty.
Functions ¶
func XMLFeedTypeOf ¶
XMLFeedTypeOf tries to make a decision what type of provider we should use based on the content. If it's not an XML or it's an unknown type, then returns with error.
Types ¶
type Gitea ¶ added in v1.2.0
type Gitea struct{}
Gitea provider.
type Interface ¶
Interface is a common interface for providers like RSS.
func NewProviderByName ¶
NewProviderByName creates a new Provider based on its name.
type UnknownXMLFeedType ¶
type UnknownXMLFeedType struct {
Type string
}
UnknownXMLFeedType occurs when downloader meets with an unknown feed format.
func (UnknownXMLFeedType) Error ¶
func (e UnknownXMLFeedType) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.