Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNetwork = errors.New("network unavailable") ErrInvalidSource = errors.New("invalid feed source URL") CmdErrXMLParse = errors.New("Oops.. Something wrong when parsing XML feed") CmdNotSupportXML = errors.New("Encounter unsupport XML type") CmdErrUserNetwork = errors.New("Contains unavailble URL or network unavailble") )
View Source
var RequestCache = make(map[string]Feeder)
Functions ¶
func SaveAsJSON ¶
Types ¶
type CmdController ¶
type CmdController struct{}
func (CmdController) AddNewSource ¶
func (c CmdController) AddNewSource(tunnel chan *logger.Message, category string, urls ...string) (s []*Source, reason error)
AddNewSource bind with CMD: rossy add [url] [url] ...
type Feeder ¶
type Feeder interface { Convert() []*entity.Post Diff(latest time.Time, underCondition bool) []*entity.Post }
Feeder in Cache and used by app
Click to show internal directories.
Click to hide internal directories.