Versions in this module Expand all Collapse all v0 v0.6.2 Mar 8, 2024 v0.6.1 May 15, 2023 v0.6.0 Jan 23, 2023 v0.5.11 Jan 9, 2023 v0.5.10 Oct 11, 2022 v0.5.9 Oct 1, 2022 Changes in this version + type GitHubRateLimitResponse struct + Cost int + Limit int + NodeCount int + Remaining int + ResetAt githubv4.DateTime + Used int + type OptionFn func(*Options) + func WithContextValue(key, value string) OptionFn + func WithExcludeGit(exclude bool) OptionFn + func WithExtraFunctions() OptionFn + func WithGitHub() OptionFn + func WithGitHubClientGetter(getter func() *githubv4.Client) OptionFn + func WithGitHubPostRequestHook(f func()) OptionFn + func WithGitHubPreRequestHook(f func()) OptionFn + func WithGitHubRateLimitHandler(handler func(*GitHubRateLimitResponse)) OptionFn + func WithLogger(logger *zerolog.Logger) OptionFn + func WithNPM() OptionFn + func WithNPMHttpClient(client *http.Client) OptionFn + func WithRepoLocator(loc services.RepoLocator) OptionFn + func WithSourcegraph() OptionFn + func WithSourcegraphClientGetter(getter func() *graphql.Client) OptionFn + type Options struct + Context services.Context + ExcludeGit bool + ExtraFunctions bool + GitHub bool + GitHubClientGetter func() *githubv4.Client + GitHubPostRequestHook func() + GitHubPreRequestHook func() + GitHubRateLimitHandler func(*GitHubRateLimitResponse) + Locator services.RepoLocator + Logger *zerolog.Logger + NPM bool + NPMHttpClient *http.Client + Sourcegraph bool + SourcegraphClientGetter func() *graphql.Client + type RepoLocatorFn func(ctx context.Context, path string) (*git.Repository, error) + func (fn RepoLocatorFn) Open(ctx context.Context, path string) (*git.Repository, error)