Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
func (*Feed) Deserialize ¶
func (*Feed) IsOverrideMode ¶
IsOverrideMode 如果 RSS 都没有发布时间,则为全量覆盖模式
type Item ¶
type Item struct {
GUID string `json:"guid"`
Title string `json:"title"`
Description string `json:"description"`
Link string `json:"link"`
Authors []string `json:"authors"`
PubDate int64 `json:"pub_date"`
CategoryList []string `json:"category_list"`
}
func (*Item) SetValueWith ¶
type RSSHubService ¶
type RSSHubService interface {
Fetch(subscribeURL string, opts ...WithOptions) (*Feed, error)
}
func NewService ¶
func NewService() RSSHubService
type WithOptions ¶
type WithOptions func(*Config)
func CacheExpiration ¶
func CacheExpiration(expiration int) WithOptions
func DisableCache ¶
func DisableCache(disable bool) WithOptions
Click to show internal directories.
Click to hide internal directories.