Documentation ¶
Overview ¶
Package prefetch processes items received via RSS/Atom feeds and checks if they contain image links. If they do, it loads those images, saves them locally and adjusts the item to reference the local image. We may do this for other resources, too.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prefetcher ¶
type Prefetcher struct {
// contains filtered or unexported fields
}
Prefetcher takes care of processing news items to prefetch and locally store images. Maybe other stuff, too.
func Create ¶
func Create(cnt int) (*Prefetcher, error)
Create creates a new instance of the Prefetcher, prepared to use up to cnt concurrent goroutines for fetching objects.
func (*Prefetcher) IsRunning ¶
func (p *Prefetcher) IsRunning() bool
IsRunning returns true if the Prefetcher is active.
func (*Prefetcher) Start ¶
func (p *Prefetcher) Start() error
Start sets the Prefetcher on its path.
Click to show internal directories.
Click to hide internal directories.