MCPcopy
hub / github.com/github/github-mcp-server / APIHostResolver

Interface APIHostResolver

pkg/utils/api.go:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type APIHostResolver interface {
13 BaseRESTURL(ctx context.Context) (*url.URL, error)
14 GraphqlURL(ctx context.Context) (*url.URL, error)
15 UploadURL(ctx context.Context) (*url.URL, error)
16 RawURL(ctx context.Context) (*url.URL, error)
17 AuthorizationServerURL(ctx context.Context) (*url.URL, error)
18}
19
20type APIHost struct {
21 restURL *url.URL

Callers 12

FetchTokenScopesMethod · 0.65
GetClientMethod · 0.65
createGitHubClientsFunction · 0.65
GetGQLClientMethod · 0.65
createGitHubClientsFunction · 0.65
GetClientMethod · 0.65
createGitHubClientsFunction · 0.65
GetRawClientMethod · 0.65
createGitHubClientsFunction · 0.65
metadataHandlerMethod · 0.65

Implementers 2

APIHostpkg/utils/api.go
testAPIHostResolverpkg/scopes/fetcher_test.go

Calls

no outgoing calls

Tested by

no test coverage detected