MCPcopy Index your code
hub / github.com/git-bug/git-bug / buildClient

Function buildClient

bridge/github/github.go:49–55  ·  view source on GitHub ↗
(token *auth.Token)

Source from the content-addressed store, hash-verified

47}
48
49func buildClient(token *auth.Token) *rateLimitHandlerClient {
50 src := oauth2.StaticTokenSource(
51 &oauth2.Token{AccessToken: token.Value},
52 )
53 httpClient := oauth2.NewClient(context.TODO(), src)
54 return newRateLimitHandlerClient(httpClient)
55}

Callers 3

cacheAllClientMethod · 0.70
InitMethod · 0.70
getLoginFromTokenFunction · 0.70

Calls 1

Tested by

no test coverage detected