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

Function networkSubscriptionsValues

internal/cli/client.go:5797–5809  ·  view source on GitHub ↗
(query NetworkSubscriptionsQuery)

Source from the content-addressed store, hash-verified

5795}
5796
5797func networkSubscriptionsValues(query NetworkSubscriptionsQuery) url.Values {
5798 values := url.Values{}
5799 if trimmed := strings.TrimSpace(query.ThreadID); trimmed != "" {
5800 values.Set("thread_id", trimmed)
5801 }
5802 if trimmed := strings.TrimSpace(query.PeerID); trimmed != "" {
5803 values.Set("peer_id", trimmed)
5804 }
5805 if query.Limit > 0 {
5806 values.Set("limit", strconv.Itoa(query.Limit))
5807 }
5808 return values
5809}
5810
5811func vaultListValues(query VaultListQuery) url.Values {
5812 values := url.Values{}

Callers 1

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected