package
Version:
v0.0.0-...-b6d118a
Opens a new window with list of versions in this module.
Published: Jan 8, 2025
License: AGPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
- Variables
-
func InitDatabase(dbPath string) (*sql.DB, error)
-
func ListFeedsOlderThan(ctx context.Context, db *sql.DB, olderThan time.Time, limit int) ([]string, error)
-
func OpenCached(ctx context.Context, db *sql.DB, name string, uncachedFn feed.Open, ...) (feed.Feed, error)
CacheTime is the duration that feeds should be cached for.
InitDatabase creates a cache database at dbPath and returns a connection to
it.
ListFeedsOlderThan lists feeds older than time so that they can be updated.
OpenCached returns a feed that is either already cached or one that will
cache the uncached in the database one as it is iterated through.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.