Versions in this module Expand all Collapse all v0 v0.1.1 Oct 24, 2019 Changes in this version + type ErrUnauthorized struct + func (e *ErrUnauthorized) Error() string v0.1.0 Oct 23, 2019 Changes in this version + func SetRateLimitTransport(client *http.Client, logger log.Logger) + func SetRetryTransport(client *http.Client) + type Connection interface + GetPageInfo func() graphql.PageInfo + GetTotalCount func() int + Len func() int + type Downloader struct + func NewDownloader(httpClient *http.Client, db *sql.DB) (*Downloader, error) + func NewMemoryDownloader(httpClient *http.Client, memory *testutils.Memory) (*Downloader, error) + func NewStdoutDownloader(httpClient *http.Client) (*Downloader, error) + func (d Downloader) Cleanup(ctx context.Context, currentVersion int) error + func (d Downloader) DownloadOrganization(ctx context.Context, name string, version int) error + func (d Downloader) DownloadRepository(ctx context.Context, owner string, name string, version int) error + func (d Downloader) ListRepositories(ctx context.Context, name string, noForks bool) ([]string, error) + func (d Downloader) RateRemaining(ctx context.Context) (int, error) + func (d Downloader) SetCurrent(ctx context.Context, version int) error + type ErrAbuseRateLimit struct + func (e *ErrAbuseRateLimit) Error() string + type ErrRateLimit struct + func (e *ErrRateLimit) Error() string + type Query interface + Connection func() Connection + type RateLimitTransport struct + func NewRateLimitTransport(rt http.RoundTripper, logger log.Logger) *RateLimitTransport + func (rt *RateLimitTransport) RoundTrip(req *http.Request) (*http.Response, error)