feed

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2020 License: GPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Version() Version
	// contains filtered or unexported methods
}

type CachedFeed

type CachedFeed interface {
	Checked(withFailure bool)
	Failures() int
	Last() time.Time
	ID() string

	Commit()
	// contains filtered or unexported methods
}

type Feed

type Feed struct {
	*config.Feed

	Global config.GlobalOptions
	// contains filtered or unexported fields
}

func (*Feed) FetchSuccessful

func (feed *Feed) FetchSuccessful() bool

func (*Feed) MarkSuccess

func (feed *Feed) MarkSuccess()

func (*Feed) Messages

func (feed *Feed) Messages() (msg.Messages, error)

func (*Feed) NeedsUpdate

func (feed *Feed) NeedsUpdate(updateTime time.Time) bool

type State

type State struct {
	// contains filtered or unexported fields
}

func NewState

func NewState(cfg *config.Config) *State

func (*State) Fetch

func (state *State) Fetch() int

func (*State) Filter

func (state *State) Filter()

func (*State) Foreach

func (state *State) Foreach(f func(*Feed))

func (*State) ForeachGo

func (state *State) ForeachGo(goFunc func(*Feed))

func (*State) LoadCache

func (state *State) LoadCache(fileName string, forceNew bool) error

func (*State) NumFeeds

func (state *State) NumFeeds() int

func (*State) RemoveUndue

func (state *State) RemoveUndue()

func (*State) StoreCache

func (state *State) StoreCache(fileName string) error

type Version

type Version byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL