Versions in this module Expand all Collapse all v0 v0.8.5 Sep 29, 2022 Changes in this version + func Disconnect() + func InitDB() + func PublishItem(source *Source, item *rss.Item, html string) string + type Content struct + Description string + HashID string + RawID string + RawLink string + SourceID uint + TelegraphURL string + Title string + func GenContentAndCheckByFeedItem(s *Source, item *rss.Item) (*Content, bool, error) + type EditTime struct + CreatedAt time.Time + UpdatedAt time.Time + type Option struct + ID int + Name string + Value string + type Source struct + Content []Content + ErrorCount uint + ID uint + Link string + Title string + func FindOrNewSourceByUrl(url string) (*Source, error) + func GetSources() (sources []*Source) + func GetSubscribedNormalSources() []*Source + func (s *Source) AddErrorCount() + func (s *Source) EraseErrorCount() + func (s *Source) IsSubscribed() bool + func (s *Source) NeedUpdate() bool + func (s *Source) Save() + type Subscribe struct + EnableNotification int + EnableTelegraph int + ID uint + Interval int + SourceID uint + Tag string + UserID int64 + WaitTime int + func GetSubscriberBySource(s *Source) []*Subscribe + func (s *Subscribe) Unsub() error + type User struct + ID int64