Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotModified = errors.New("not modified")
Functions ¶
Types ¶
type MastodonPoller ¶
type MastodonPoller struct {
// contains filtered or unexported fields
}
func NewMastodonPoller ¶
func NewMastodonPoller(cfg *common.Config, db *server.DB, newCh chan common.AggregatorItem) (*MastodonPoller, error)
func (*MastodonPoller) GrabTimeline ¶
func (m *MastodonPoller) GrabTimeline()
func (*MastodonPoller) HandleHTTP ¶
func (m *MastodonPoller) HandleHTTP(c *gin.Context)
type PollerData ¶
type PollerData struct {
ID int `json:"id,omitempty"`
Type string `json:"type"`
Kind string `json:"kind"`
Skey string `json:"skey"`
LastSeenStr string `json:"last_seen_str"`
LastSeenInt int64 `json:"last_seen_int"`
}
func GetRunData ¶
func GetRunData(db *server.DB, skey string) *PollerData
func (*PollerData) GetID ¶
func (p *PollerData) GetID() int
func (*PollerData) SetID ¶
func (p *PollerData) SetID(id int)
type RssItem ¶
type RssPoller ¶
type RssPoller struct {
// contains filtered or unexported fields
}
func NewRssPoller ¶
func (*RssPoller) GetFromURL ¶
Calls the feed url with conditional headers. See https://github.com/mmcdole/gofeed/issues/111#issuecomment-450956821
func (*RssPoller) HandleHTTP ¶
func (*RssPoller) HandleNewSubs ¶
func (r *RssPoller) HandleNewSubs()
type TwitterPoller ¶
type TwitterPoller struct {
// contains filtered or unexported fields
}
func NewTwitterPoller ¶
func NewTwitterPoller(cfg *common.Config, db *server.DB, newCh chan common.AggregatorItem) (*TwitterPoller, error)
func (*TwitterPoller) GrabTimeline ¶
func (t *TwitterPoller) GrabTimeline()
func (*TwitterPoller) HandleHTTP ¶
func (t *TwitterPoller) HandleHTTP(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.