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

Method ConnectRPC23

codersdk/agentsdk/agentsdk.go:231–239  ·  view source on GitHub ↗

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

(ctx context.Context)

Source from the content-addressed store, hash-verified

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+
231func (c *Client) ConnectRPC23(ctx context.Context) (
232 proto.DRPCAgentClient23, tailnetproto.DRPCTailnetClient23, error,
233) {
234 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 3), "")
235 if err != nil {
236 return nil, nil, err
237 }
238 return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil
239}
240
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+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected