MCPcopy Create free account
hub / github.com/compozy/agh / GetBridge

Method GetBridge

internal/cli/client.go:2474–2483  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

2472}
2473
2474func (c *unixSocketClient) GetBridge(ctx context.Context, id string) (BridgeRecord, error) {
2475 var response struct {
2476 Bridge BridgeRecord `json:"bridge"`
2477 }
2478 path := "/api/bridges/" + url.PathEscape(strings.TrimSpace(id))
2479 if err := c.doJSON(ctx, http.MethodGet, path, nil, nil, &response); err != nil {
2480 return BridgeRecord{}, err
2481 }
2482 return response.Bridge, nil
2483}
2484
2485func (c *unixSocketClient) UpdateBridge(
2486 ctx context.Context,

Callers 1

Calls 1

doJSONMethod · 0.95

Tested by 1