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

FuncType DialFunc

coderd/x/chatd/dialvalidation.go:22–22  ·  view source on GitHub ↗

DialFunc dials an agent by ID and returns a connection.

func(ctx context.Context, id uuid.UUID) (workspacesdk.AgentConn, func(), error)

Source from the content-addressed store, hash-verified

20
21// DialFunc dials an agent by ID and returns a connection.
22type DialFunc func(ctx context.Context, id uuid.UUID) (workspacesdk.AgentConn, func(), error)
23
24// ValidateFunc returns the current agent ID for a workspace.
25type ValidateFunc func(ctx context.Context, workspaceID uuid.UUID) (uuid.UUID, error)

Callers 1

getWorkspaceConnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected