Documentation ¶
Index ¶
- type Cache
- type CachedFeed
- type Impl
- type State
- func (state *State) Fetch() int
- func (state *State) Filter()
- func (state *State) Foreach(f func(CachedFeed))
- func (state *State) ForeachGo(goFunc func(CachedFeed))
- func (state *State) LoadCache(fileName string, forceNew bool) error
- func (state *State) NumFeeds() int
- func (state *State) RemoveUndue()
- func (state *State) StoreCache(fileName string) error
- func (state *State) UnlockCache()
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedFeed ¶
type CachedFeed interface { // Checked marks the feed as being a failure or a success on last check. Checked(withFailure bool) // Failures of this feed up to now. Failures() int // The Last time, this feed has been checked Last() time.Time // Filter the given items against the cached items. Filter(items []feed.Item, ignoreHash bool, alwaysNew bool) []feed.Item // Commit any changes done to the cache state. Commit() // The Feed, that is cached. Feed() *feed.Feed }
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) Foreach ¶
func (state *State) Foreach(f func(CachedFeed))
func (*State) ForeachGo ¶
func (state *State) ForeachGo(goFunc func(CachedFeed))
func (*State) RemoveUndue ¶
func (state *State) RemoveUndue()
func (*State) StoreCache ¶
func (*State) UnlockCache ¶
func (state *State) UnlockCache()
Click to show internal directories.
Click to hide internal directories.