Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidQuery = errors.New("invalid query")
Functions ¶
This section is empty.
Types ¶
type BackendRequest ¶
type GitHubBackend ¶
type GitHubBackend struct {
// contains filtered or unexported fields
}
func NewGitHubBackend ¶
func NewGitHubBackend(client GitHubSearchClient, chunk int) *GitHubBackend
func (*GitHubBackend) Search ¶
func (backend *GitHubBackend) Search(ctx context.Context, request BackendRequest) (api.SearchResponse, error)
type GitHubSearchClient ¶
type GitHubSearchClient interface {
SearchCode(context.Context, int64, string, []int64) (api.SearchResponse, error)
}
GitHubSearchClient is deliberately limited to installation-scoped search.
type RepositoryScope ¶
RepositoryScope is the backend-neutral, authorization-derived repository identity. Backends must never discover repositories independently.
type SearchBackend ¶
type SearchBackend interface {
Search(context.Context, BackendRequest) (api.SearchResponse, error)
Health(context.Context) error
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(backend SearchBackend, authorizer authz.Authorizer, limits Limits) *Service
Click to show internal directories.
Click to hide internal directories.