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

Method ListBridges

internal/cli/client.go:2454–2462  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

2452}
2453
2454func (c *unixSocketClient) ListBridges(ctx context.Context) ([]BridgeRecord, error) {
2455 var response struct {
2456 Bridges []BridgeRecord `json:"bridges"`
2457 }
2458 if err := c.doJSON(ctx, http.MethodGet, "/api/bridges", nil, nil, &response); err != nil {
2459 return nil, err
2460 }
2461 return response.Bridges, nil
2462}
2463
2464func (c *unixSocketClient) CreateBridge(ctx context.Context, request CreateBridgeRequest) (BridgeRecord, error) {
2465 var response struct {

Callers 1

Calls 1

doJSONMethod · 0.95

Tested by 1