MCPcopy Index your code
hub / github.com/coder/coder / WithPath

Function WithPath

agent/agentsocket/client.go:24–31  ·  view source on GitHub ↗

WithPath sets the socket path. If not provided or empty, the client will auto-discover the default socket path.

(path string)

Source from the content-addressed store, hash-verified

22// WithPath sets the socket path. If not provided or empty, the client will
23// auto-discover the default socket path.
24func WithPath(path string) Option {
25 return func(opts *options) {
26 if path == "" {
27 return
28 }
29 opts.path = path
30 }
31}
32
33// Client provides a client for communicating with the workspace agentsocket API.
34type Client struct {

Callers 12

syncStartMethod · 0.92
syncCompleteMethod · 0.92
syncStatusMethod · 0.92
syncPingMethod · 0.92
syncWantMethod · 0.92
mcpServerMethod · 0.92
setupSocketServerFunction · 0.92
TestSyncCommands_GoldenFunction · 0.92
initSocketServerMethod · 0.92
newSocketClientFunction · 0.92
TestServerFunction · 0.92

Calls

no outgoing calls

Tested by 5

setupSocketServerFunction · 0.74
TestSyncCommands_GoldenFunction · 0.74
newSocketClientFunction · 0.74
TestServerFunction · 0.74