ConnectRPC28WithRole is like ConnectRPC28 but sends an explicit role query parameter to the server. Use "agent" for workspace agents to enable connection monitoring.
(ctx context.Context, role string)
| 302 | // query parameter to the server. Use "agent" for workspace agents to |
| 303 | // enable connection monitoring. |
| 304 | func (c *Client) ConnectRPC28WithRole(ctx context.Context, role string) ( |
| 305 | proto.DRPCAgentClient28, tailnetproto.DRPCTailnetClient28, error, |
| 306 | ) { |
| 307 | conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 8), role) |
| 308 | if err != nil { |
| 309 | return nil, nil, err |
| 310 | } |
| 311 | return proto.NewDRPCAgentClient(conn), tailnetproto.NewDRPCTailnetClient(conn), nil |
| 312 | } |
| 313 | |
| 314 | // ConnectRPC29 returns a dRPC client to the Agent API v2.9. It is useful when you want to be |
| 315 | // maximally compatible with Coderd Release Versions from 2.32+ |
no test coverage detected