Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Content ¶
type Content struct { SourceID uint HashID string `gorm:"primary_key"` RawID string RawLink string Title string Description string `gorm:"-"` //ignore to db TelegraphURL string EditTime }
Content fetcher content
type Source ¶
type Source struct { ID uint `gorm:"primary_key;AUTO_INCREMENT"` Link string Title string ErrorCount uint Content []Content EditTime }
func FindOrNewSourceByUrl ¶
func GetSources ¶
func GetSources() (sources []*Source)
func GetSubscribedNormalSources ¶
func GetSubscribedNormalSources() []*Source
func (*Source) AddErrorCount ¶
func (s *Source) AddErrorCount()
func (*Source) EraseErrorCount ¶
func (s *Source) EraseErrorCount()
func (*Source) IsSubscribed ¶
func (*Source) NeedUpdate ¶
Click to show internal directories.
Click to hide internal directories.