package
0.1.0
Repository: https://github.com/src-d/gitcollector.git
Documentation: pkg.go.dev

# Functions

GetGHEndpoint gets the enpoint for a github repository.
NewGHOrgReposIter builds a new GHOrgReposIter.
NewGitHub builds a new GitHub.

# Variables

ErrAdvertiseTimeout is returned when an advertise functions exceeds the timeout.
ErrDiscoveryStop is returned when a discovery fails on Stop.
ErrDiscoveryStopped is returned when a discovery has been stopped.
ErrEndpointsNotFound is the returned error when couldn't find endpoints for a certain repository.
ErrNewRepositoriesNotFound is returned when there aren't new repositories in the organization.
ErrRateLimitExceeded is returned when the api rate limit is reached.

# Structs

GHOrgReposIter is a GHRepositoriesIter by organization name.
GHReposIterOpts represents configuration options for a GHReposIter.
GitHub will retrieve the information for all the repositories for the given GHRepositoriesIterator.
GitHubOpts represents configuration options for a GitHub discovery.

# Interfaces

GHRepositoriesIter represents an iterator of *github.Repositories.

# Type aliases

AdvertiseGHRepositoriesFn is used by a GitHub to notify that a new repository has been discovered.