Versions in this module Expand all Collapse all v0 v0.5.0 Mar 11, 2025 Changes in this version + type BlueSkyPoller struct + func NewBlueSkyPoller(cfg *common.Config, db *server.DB, newCh chan common.AggregatorItem) (*BlueSkyPoller, error) + func (m *BlueSkyPoller) APICall(ctx context.Context, method, path string, params map[string]string) ([]byte, error) + func (m *BlueSkyPoller) Authorize(ctx context.Context) error + func (m *BlueSkyPoller) GetAccount(ctx context.Context) (*bluesky.Account, error) + func (m *BlueSkyPoller) GetDID(ctx context.Context) (string, error) + func (m *BlueSkyPoller) GetTimelineHome(ctx context.Context, pagination *bluesky.Pagination) ([]*bsky.FeedDefs_FeedViewPost, error) + func (m *BlueSkyPoller) GrabTimeline() + type BlueskyPost struct + User *bluesky.Account + func (s *BlueskyPost) ToDoc() (*common.Doc, error) v0.4.0 Nov 12, 2023 Changes in this version + type Account struct + Acct string + Avatar string + DisplayName string + ID ID + URL string + Username string + type Attachment struct + ID ID + Meta AttachmentMeta + Type string + URL string + type AttachmentMeta struct + Original AttachmentSize + Small AttachmentSize + type AttachmentSize struct + Aspect float64 + Height int64 + Size string + Width int64 + type ID string type MastodonPoller + func (m *MastodonPoller) APICall(ctx context.Context, method, path string, params map[string]string) ([]byte, error) + func (m *MastodonPoller) Authorize(ctx context.Context, username, password string) error + func (m *MastodonPoller) GetAccount(ctx context.Context) (*Account, error) + func (m *MastodonPoller) GetFollowedTags(ctx context.Context) (map[string]Tag, error) + func (m *MastodonPoller) GetTimelineHome(ctx context.Context, pagination *Pagination) ([]*Status, error) + type Pagination struct + Limit int64 + SinceID string type Status + Account Account + Card *common.Card + Content string + CreatedAt time.Time + Filtered []interface{} + ID ID + MediaAttachments []Attachment + Muted interface{} + Reblog *Status + Reblogged interface{} + Tags []Tag + URI string + URL string + type Tag struct + Name string + URL string + type Toot struct + FollowedTag *Tag + User *Account + func (s *Toot) ToDoc() (*common.Doc, error) v0.3.0 Sep 29, 2023 Changes in this version + func GetFoldersMap(db *server.DB) (map[string]*common.Folder, error) type RssItem + Folder *common.Folder + Skey string v0.2.0 Aug 28, 2023 v0.1.0 Jul 18, 2023 Changes in this version + var ErrNotModified = errors.New("not modified") + type Feed struct + ETag string + LastModified string + type MastodonPoller struct + func NewMastodonPoller(cfg *common.Config, db *server.DB, newCh chan common.AggregatorItem) (*MastodonPoller, error) + func (m *MastodonPoller) GrabTimeline() + func (m *MastodonPoller) HandleHTTP(c *gin.Context) + type PollerData struct + ID int + Kind string + LastSeenInt int64 + LastSeenStr string + Skey string + Type string + func GetRunData(db *server.DB, skey string) *PollerData + func (p *PollerData) GetID() int + func (p *PollerData) SetID(id int) + type RssItem struct + FeedTitle string + FeedUrl string + func (ri RssItem) ToDoc() (*common.Doc, error) + type RssPoller struct + func NewRssPoller(cfg *common.Config, db *server.DB, newCh chan common.AggregatorItem, ...) *RssPoller + func (r *RssPoller) GetFromURL(sub *common.Sub) (*Feed, error) + func (r *RssPoller) GrabFeed(sub *common.Sub) error + func (r *RssPoller) GrabFeeds() + func (r *RssPoller) HandleHTTP(c *gin.Context) + func (r *RssPoller) HandleNewSubs() + func (r *RssPoller) Run() + type Status struct + User *mastodon.Account + func (s *Status) ToDoc() (*common.Doc, error) + type Tweet struct + Account *twitter.User + func (w Tweet) ToDoc() (*common.Doc, error) + type TwitterPoller struct + func NewTwitterPoller(cfg *common.Config, db *server.DB, newCh chan common.AggregatorItem) (*TwitterPoller, error) + func (t *TwitterPoller) GrabTimeline() + func (t *TwitterPoller) HandleHTTP(c *gin.Context)