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

Method ConnectRPC22

codersdk/agentsdk/agentsdk.go:219–227  ·  view source on GitHub ↗

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

(ctx context.Context)

Source from the content-addressed store, hash-verified

217// ConnectRPC22 returns a dRPC client to the Agent API v2.2. It is useful when you want to be
218// maximally compatible with Coderd Release Versions from 2.13+
219func (c *Client) ConnectRPC22(ctx context.Context) (
220 proto.DRPCAgentClient22, tailnetproto.DRPCTailnetClient22, error,
221) {
222 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 2), "")
223 if err != nil {
224 return nil, nil, err
225 }
226 return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil
227}
228
229// ConnectRPC23 returns a dRPC client to the Agent API v2.3. It is useful when you want to be
230// maximally compatible with Coderd Release Versions from 2.18+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected