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

Method ConnectRPC24

codersdk/agentsdk/agentsdk.go:243–251  ·  view source on GitHub ↗

ConnectRPC24 returns a dRPC client to the Agent API v2.4. It is useful when you want to be maximally compatible with Coderd Release Versions from 2.20+

(ctx context.Context)

Source from the content-addressed store, hash-verified

241// ConnectRPC24 returns a dRPC client to the Agent API v2.4. It is useful when you want to be
242// maximally compatible with Coderd Release Versions from 2.20+
243func (c *Client) ConnectRPC24(ctx context.Context) (
244 proto.DRPCAgentClient24, tailnetproto.DRPCTailnetClient24, error,
245) {
246 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 4), "")
247 if err != nil {
248 return nil, nil, err
249 }
250 return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil
251}
252
253// ConnectRPC25 returns a dRPC client to the Agent API v2.5. It is useful when you want to be
254// maximally compatible with Coderd Release Versions from 2.23+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected