Versions in this module Expand all Collapse all v0 v0.4.0 Jan 12, 2020 Changes in this version + var ErrFewerResultsThanDesired = fmt.Errorf("contains fewer results than desired") + func Factory(ctx context.Context, conf *search.BackendConfig) (search.Backend, error) + type Backend struct + func (b *Backend) Search(ctx context.Context, query string, numDesiredResults int) ([]project.Backend, error) + type Client struct + RepositoryService RepositoryService + SearchService SearchService + type RepositoryService interface + ListCommits func(context.Context, string, string, *github.CommitsListOptions) ([]*github.RepositoryCommit, *github.Response, error) + type SearchService interface + Code func(context.Context, string, *github.SearchOptions) (*github.CodeSearchResult, *github.Response, error) + Repositories func(context.Context, string, *github.SearchOptions) (*github.RepositoriesSearchResult, *github.Response, error) + type URLRetriever interface + GetCloneURL func() string + GetHTMLURL func() string