Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RssBody ¶ added in v1.0.4
type RssBody struct {
Channel RssChannel `xml:"channel"`
}
RssBody rss内容body
type RssChannel ¶ added in v1.0.4
type RssChannel struct {
Title string `xml:"title"`
Description string `xml:"description"`
Link string `xml:"link"`
PubDate string `xml:"pubDate"`
Language string `xml:"language"`
Copyright string `xml:"copyright"`
Generator string `xml:"generator"`
Image struct {
Title string `xml:"title"`
Url string `xml:"url"`
Link string `xml:"link"`
} `xml:"image"`
Items []*RssItems `xml:"item"`
}
type RssFetcher ¶
type RssFetcher struct {
// contains filtered or unexported fields
}
func NewRssFetcher ¶
func NewRssFetcher(l v1log.ILog) *RssFetcher
func (*RssFetcher) AddHandler ¶
func (w *RssFetcher) AddHandler(h RssHandler)
func (*RssFetcher) AddRss ¶
func (w *RssFetcher) AddRss(name, url string)
func (*RssFetcher) AddRssMeta ¶
func (w *RssFetcher) AddRssMeta(meta ...*RssMeta)
func (*RssFetcher) Fetch ¶
func (w *RssFetcher) Fetch()
func (*RssFetcher) FetchHandler ¶
func (w *RssFetcher) FetchHandler(handlers ...RssHandler)
FetchHandler 顺序拉取
type RssHandler ¶
Click to show internal directories.
Click to hide internal directories.