MCPcopy Create free account
hub / github.com/coder/coder / ConnectRPC25

Method ConnectRPC25

codersdk/agentsdk/agentsdk.go:255–263  ·  view source on GitHub ↗

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

(ctx context.Context)

Source from the content-addressed store, hash-verified

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+
255func (c *Client) ConnectRPC25(ctx context.Context) (
256 proto.DRPCAgentClient25, tailnetproto.DRPCTailnetClient25, error,
257) {
258 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 5), "")
259 if err != nil {
260 return nil, nil, err
261 }
262 return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil
263}
264
265// ConnectRPC26 returns a dRPC client to the Agent API v2.6. It is useful when you want to be
266// maximally compatible with Coderd Release Versions from 2.24+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected