Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID string Title string Author string Link url.URL Date time.Time Tags []string }
Article represents a editorial piece to read
type ArticleRepository ¶
type ArticleRepository interface { All(ctx context.Context) ([]Article, error) Get(ctx context.Context, id string) (Article, error) }
ArticleRepository can fetch Articles
type ReadingList ¶
ReadingList stores Articles for future reading
func (*ReadingList) AddArticle ¶
func (l *ReadingList) AddArticle(ctx context.Context, a Article)
AddArticle to the list
type ReadingListRepository ¶
type ReadingListRepository interface { Load(ctx context.Context, id string) (*ReadingList, error) Save(ctx context.Context, l *ReadingList) error }
ReadingListRepository can store and load ReadingLists
Click to show internal directories.
Click to hide internal directories.