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

Method NetworkChannels

internal/cli/client.go:1870–1882  ·  view source on GitHub ↗
(ctx context.Context, workspaceRef string)

Source from the content-addressed store, hash-verified

1868}
1869
1870func (c *unixSocketClient) NetworkChannels(ctx context.Context, workspaceRef string) ([]NetworkChannelRecord, error) {
1871 var response struct {
1872 Channels []NetworkChannelRecord `json:"channels"`
1873 }
1874 path, err := networkBasePath(workspaceRef)
1875 if err != nil {
1876 return nil, err
1877 }
1878 if err := c.doJSON(ctx, http.MethodGet, path+"/channels", nil, nil, &response); err != nil {
1879 return nil, err
1880 }
1881 return response.Channels, nil
1882}
1883
1884func (c *unixSocketClient) CreateNetworkChannel(
1885 ctx context.Context,

Callers 1

Calls 2

doJSONMethod · 0.95
networkBasePathFunction · 0.85

Tested by 1