Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { ID int `json:"-" db:"id"` Slug string `json:"slug" db:"slug"` LastScrappedAt time.Time `json:"last_scrapped_at" db:"last_scrapped_at"` DiscoveredAt time.Time `json:"discovered_at" db:"discovered_at"` Source string `json:"source" db:"source"` ErrorCode int `json:"-" db:"error_code"` ErrorAt time.Time `json:"-" db:"error_at"` }
type RepositorySnapshot ¶
type RepositorySnapshots ¶
type RepositorySnapshots []*RepositorySnapshot
type Scraper ¶
func NewScraper ¶
func (*Scraper) FindSnapshots ¶
func (i *Scraper) FindSnapshots(slug string) (RepositorySnapshots, error)
func (*Scraper) ListRepositorySlugs ¶
type Stats ¶
type Stats struct { TotalRepositories int64 `json:"discovered_repositories_total"` RepositoriesWithoutErrors int64 `json:"discovered_repositories_without_errors"` RepositoriesWithErrors int64 `json:"discovered_repositories_with_errors"` TotalSnapshotsCompleted int64 `json:"snapshots_completed_total"` SnapShotQueue int64 `json:"snapshot_queue"` SnapshotsCompleted uint64 `json:"proc_snapshots_completed"` DiscoveriesCompleted uint64 `json:"proc_discoveries_completed"` SnapshotQueueLength int `json:"proc_snapshot_queue_length"` SnapshotRefreshInterval string `json:"snapshot_refresh_interval"` }
Click to show internal directories.
Click to hide internal directories.