command
module
Version:
v0.0.0-...-a1d9538
Opens a new window with list of versions in this module.
Published: Nov 26, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
depper
A dapper consumer of ecosystem APIs.
Depper is an ingestor of package releases from multiple ecosystems (each ecosystem is found in ingestors/).
When new package releases are found, they are pushed to a shared redis queue for Libraries.io to process.
Ingestor Types
ingestors.Ingestor
: these are scheduled to ingest new versions at specific intervals (ingestor.Schedule()
).
ingestors.StreamingIngestor
: these are always running in a goroutine, ingesting new releases via a channel
Ingestor Cursor Patterns
Depper has to know where to pick up once it restarts, so there are several methods for storing such a cursor:
ingestors.setBookmarkTime()
+ ingestor.getBookmarkTime()
[RECOMMENDED] : reads/sets a time.Time
to redis (persistent)
ingestors.setBookmark()
+ ingestor.getBookmark()
: reads/sets an arbitrary string to redis (persistent)
LatestRun
: reads/sets a time.Time
on the ingestor instance (non-persistent)
Running Locally
go run main.go
Running Tests
go test -v ./...
Deploying
- merge PR into
main
branch
tl setenv libraries
./bin/deploy.sh
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.