MCPcopy Create free account
hub / github.com/coder/envbuilder / initClient

Function initClient

log/coder.go:91–95  ·  view source on GitHub ↗
(coderURL *url.URL, token string)

Source from the content-addressed store, hash-verified

89}
90
91func initClient(coderURL *url.URL, token string) *agentsdk.Client {
92 client := agentsdk.New(coderURL)
93 client.SetSessionToken(token)
94 return client
95}
96
97func initRPC(ctx context.Context, client *agentsdk.Client, l slog.Logger) (proto.DRPCAgentClient20, error) {
98 var c proto.DRPCAgentClient20

Callers 1

CoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected