Documentation ¶
Index ¶
- func FakeArticle(suffix uint, tags []string, authors []dbmod.Author, published uint64, ...) dbmod.Article
- func FakeAttachments(num uint) []dbmod.Attachment
- func FakeAuthors(names []string) []dbmod.Author
- func FakeFeed(suffix uint, tags []string, articles []dbmod.Article) dbmod.Feed
- func FakePattern(suffix uint, pattern string, tags []string) dbmod.Pattern
- func FakeTagger(feed dbmod.Feed, patterns []dbmod.Pattern) (dbmod.Feed, error)
- func GetFeedErrStub(url string) (dbmod.Feed, error)
- func GetFeedStub(url string) (dbmod.Feed, error)
- func GetFeedUrlsErrStub(db *gorm.DB) ([]string, error)
- func GetFeedUrlsStub(db *gorm.DB) ([]string, error)
- func GetPatternsErrStub(db *gorm.DB) ([]dbmod.Pattern, error)
- func GetPatternsStub(db *gorm.DB) ([]dbmod.Pattern, error)
- func OnDbErrStub(err error) *zerolog.Event
- func OnFetchErrStub(url string, err error)
- func OpenDB() *gorm.DB
- func TagErrStub(feed dbmod.Feed, patterns []dbmod.Pattern) (dbmod.Feed, error)
- func TagStub(feed dbmod.Feed, patterns []dbmod.Pattern) (dbmod.Feed, error)
- func TagsStub() []string
- func UpdateFeedStub(db *gorm.DB, feed dbmod.Feed) error
- type StubData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FakeArticle ¶
func FakeAttachments ¶
func FakeAttachments(num uint) []dbmod.Attachment
func FakeAuthors ¶
func OnDbErrStub ¶
func OnFetchErrStub ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.