Documentation ¶
Overview ¶
Package bringer will have multiple feed bringers from different sources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HNBringer ¶
HNBringer brings news from hn
func (*HNBringer) GetDiscussLink ¶
GetDiscussLink makes a discuss url for the given id
func (*HNBringer) SetContext ¶
SetContext sets context
type PeriodicBringer ¶
PeriodicBringer sends any bringer periodically to maintainer
func (*PeriodicBringer) Bring ¶
func (pb *PeriodicBringer) Bring() <-chan app.Bringer
Bring gives a hn bringer periodically
type RandBringer ¶
RandBringer brings random items
func (*RandBringer) Bring ¶
func (b *RandBringer) Bring(ids []int) ([]*app.Item, error)
Bring random news
func (*RandBringer) GetDiscussLink ¶
func (b *RandBringer) GetDiscussLink(id interface{}) string
GetDiscussLink makes a discuss url for the given id
func (*RandBringer) GetSource ¶
func (b *RandBringer) GetSource() string
GetSource tells source identifier of items
func (*RandBringer) GetURL ¶
func (b *RandBringer) GetURL(id interface{}) string
GetURL makes an url for the given id
func (*RandBringer) SetContext ¶
func (b *RandBringer) SetContext(ctx context.Context)
SetContext sets context
Click to show internal directories.
Click to hide internal directories.