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

Function networkDirectPath

internal/cli/client.go:5761–5771  ·  view source on GitHub ↗
(workspaceRef string, channel string, directID string)

Source from the content-addressed store, hash-verified

5759}
5760
5761func networkDirectPath(workspaceRef string, channel string, directID string) (string, error) {
5762 path, err := networkChannelPath(workspaceRef, channel)
5763 if err != nil {
5764 return "", err
5765 }
5766 directID, err = requireNetworkPathValue("direct_id", directID)
5767 if err != nil {
5768 return "", err
5769 }
5770 return path + "/directs/" + url.PathEscape(directID), nil
5771}
5772
5773func networkDirectMessagesPath(workspaceRef string, channel string, directID string) (string, error) {
5774 path, err := networkDirectPath(workspaceRef, channel, directID)

Callers 2

NetworkDirectMethod · 0.85

Calls 2

networkChannelPathFunction · 0.85
requireNetworkPathValueFunction · 0.85

Tested by

no test coverage detected