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

Method ConnectRPC21WithTailnet

codersdk/agentsdk/agentsdk.go:207–215  ·  view source on GitHub ↗

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

(ctx context.Context)

Source from the content-addressed store, hash-verified

205// ConnectRPC21WithTailnet returns a dRPC client to the Agent API v2.1. It is useful when you want to be
206// maximally compatible with Coderd Release Versions from 2.12+
207func (c *Client) ConnectRPC21WithTailnet(ctx context.Context) (
208 proto.DRPCAgentClient21, tailnetproto.DRPCTailnetClient21, error,
209) {
210 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 1), "")
211 if err != nil {
212 return nil, nil, err
213 }
214 return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil
215}
216
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+

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected