Documentation ¶ Index ¶ func Fetch(ctx context.Context, link string) (*gofeed.Feed, error) type FeedRepo type ItemRepo type Puller func NewPuller(feedRepo FeedRepo, itemRepo ItemRepo) *Puller func (p *Puller) PullAll(ctx context.Context) error func (p *Puller) PullOne(id uint) error func (p *Puller) Run() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Fetch ¶ func Fetch(ctx context.Context, link string) (*gofeed.Feed, error) Types ¶ type FeedRepo ¶ type FeedRepo interface { All() ([]*model.Feed, error) Get(id uint) (*model.Feed, error) Update(id uint, feed *model.Feed) error } type ItemRepo ¶ type ItemRepo interface { Creates(items []*model.Item) error IdentityExist(feedID uint, guid, link, title string) (bool, error) } type Puller ¶ type Puller struct { // contains filtered or unexported fields } func NewPuller ¶ func NewPuller(feedRepo FeedRepo, itemRepo ItemRepo) *Puller func (*Puller) PullAll ¶ func (p *Puller) PullAll(ctx context.Context) error func (*Puller) PullOne ¶ func (p *Puller) PullOne(id uint) error func (*Puller) Run ¶ func (p *Puller) Run() Source Files ¶ View all Source files handle.gopull.go Click to show internal directories. Click to hide internal directories.