Versions in this module Expand all Collapse all v1 v1.2.0 Apr 9, 2024 Changes in this version + func NewDatabase() *database + type Author struct + Email string + Name string + Uri string + type Category struct + Domain string + Text string + type Channel struct + Author Author + Categories []*Category + Cloud Cloud + Copyright string + Description string + Docs string + Extensions map[string]map[string][]Extension + Generator Generator + Id string + Image Image + Items []*Item + Language string + LastBuildDate string + Links []Link + ManagingEditor string + PubDate string + Rating string + Rights string + SkipDays []int + SkipHours []int + SubTitle SubTitle + TTL int + TextInput Input + Title string + WebMaster string + func (c *Channel) Key() string + type ChannelHandler interface + ProcessChannels func(f *Feed, newchannels []*Channel) + func NewDatabaseChannelHandler(db *database, chanhandler ChannelHandler) ChannelHandler + type ChannelHandlerFunc func(f *Feed, newchannels []*Channel) + func (h ChannelHandlerFunc) ProcessChannels(f *Feed, newchannels []*Channel) + type Cloud struct + Domain string + Path string + Port int + Protocol string + RegisterProcedure string + type Content struct + Base string + Lang string + Text string + Type string + type Enclosure struct + Length int64 + Type string + Url string + type Extension struct + Attrs map[string]string + Childrens map[string][]Extension + Name string + Value string + type Feed struct + CacheTimeout int + Channels []*Channel + EnforceCacheLimit bool + Type string + Url string + Version [2]int + func New(cachetimeout int, enforcecachelimit bool, ch ChannelHandlerFunc, ...) *Feed + func NewWithHandlers(cachetimeout int, enforcecachelimit bool, ch ChannelHandler, ih ItemHandler) *Feed + func (this *Feed) CanUpdate() bool + func (this *Feed) Fetch(uri string, charset xmlx.CharsetFunc) (err error) + func (this *Feed) FetchBytes(uri string, content []byte, charset xmlx.CharsetFunc) (err error) + func (this *Feed) FetchClient(uri string, client *http.Client, charset xmlx.CharsetFunc) (err error) + func (this *Feed) GetVersionInfo(doc *xmlx.Document) (ftype string, fversion [2]int) + func (this *Feed) IgnoreCacheOnce() + func (this *Feed) LastUpdate() time.Time + func (this *Feed) SecondsTillUpdate() int64 + func (this *Feed) SetUserAgent(s string) + func (this *Feed) TillUpdate() (time.Duration, error) + type Generator struct + Text string + Uri string + Version string + type Image struct + Description string + Height int + Link string + Title string + Url string + Width int + type Input struct + Description string + Link string + Name string + Title string + type Item struct + Author Author + Categories []*Category + Comments string + Content *Content + Contributors []string + Description string + Enclosures []*Enclosure + Extensions map[string]map[string][]Extension + Generator *Generator + Guid *string + Id string + Links []*Link + PubDate string + Source *Source + Title string + Updated string + func (i *Item) Key() string + func (i *Item) ParsedPubDate() (time.Time, error) + type ItemHandler interface + ProcessItems func(f *Feed, ch *Channel, newitems []*Item) + func NewDatabaseItemHandler(db *database, itemhandler ItemHandler) ItemHandler + type ItemHandlerFunc func(f *Feed, ch *Channel, newitems []*Item) + func (h ItemHandlerFunc) ProcessItems(f *Feed, ch *Channel, newitems []*Item) + type Link struct + Href string + HrefLang string + Rel string + Type string + type MissingRssNodeError struct + func (err *MissingRssNodeError) Error() string + type Source struct + Text string + Url string + type SubTitle struct + Text string + Type string + type UnsupportedFeedError struct + Type string + Version [2]int + func (err *UnsupportedFeedError) Error() string