MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / NewClient

Function NewClient

api/client.go:53–62  ·  view source on GitHub ↗
(token, baseURL string)

Source from the content-addressed store, hash-verified

51}
52
53func NewClient(token, baseURL string) *Client {
54 return &Client{
55 baseURL: baseURL,
56 token: token,
57 httpClient: &http.Client{
58 Timeout: 30 * time.Second,
59 Transport: sentryhttpclient.NewSentryRoundTripper(nil),
60 },
61 }
62}
63
64func (c *Client) doRequest(ctx context.Context, method, path string, body, result interface{}) error {
65 sentry.AddBreadcrumb(&sentry.Breadcrumb{

Callers 12

getAuthenticatedClientFunction · 0.92
runSCPFunction · 0.92
resolveConnectClientFunction · 0.92
defaultConnectOptionsFunction · 0.92
runLoginFunction · 0.92
runInteractiveLoginFunction · 0.92
kickoffSubscriptionCheckFunction · 0.92
TestNewClientFunction · 0.85

Calls

no outgoing calls