Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostgresFromEnv ¶
Types ¶
type PostgresRepository ¶
func (*PostgresRepository) ScrapeableProjects ¶
func (r *PostgresRepository) ScrapeableProjects(workScore uint32, limit int) ([]*Project, error)
type WorkerRepository ¶
type WorkerRepository interface {
// TODO(adam): docs, but the idea is:
// - one transaction
// - grab N projects from `projects` table (by nonce) without 'started_at is not null and finished_at is null'
// - insert new rows into scrapes
ScrapeableProjects(workScore uint32, limit int) ([]*Project, error)
}
Click to show internal directories.
Click to hide internal directories.