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

Method ConnectRPC20

codersdk/agentsdk/agentsdk.go:173–179  ·  view source on GitHub ↗

ConnectRPC20 returns a dRPC client to the Agent API v2.0. Notably, it is missing GetAnnouncementBanners, but is useful when you want to be maximally compatible with Coderd Release Versions from 2.9+ Deprecated: use ConnectRPC20WithTailnet

(ctx context.Context)

Source from the content-addressed store, hash-verified

171// Release Versions from 2.9+
172// Deprecated: use ConnectRPC20WithTailnet
173func (c *Client) ConnectRPC20(ctx context.Context) (proto.DRPCAgentClient20, error) {
174 conn, err := c.connectRPCVersion(ctx, apiversion.New(2, 0), "")
175 if err != nil {
176 return nil, err
177 }
178 return proto.NewDRPCAgentClient(conn), nil
179}
180
181// ConnectRPC20WithTailnet returns a dRPC client to the Agent API v2.0. Notably, it is missing
182// GetAnnouncementBanners, but is useful when you want to be maximally compatible with Coderd

Callers

nothing calls this directly

Calls 2

connectRPCVersionMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected