(subscriptions []NetworkSubscriptionRecord)
| 1313 | } |
| 1314 | |
| 1315 | func networkSubscriptionsBundle(subscriptions []NetworkSubscriptionRecord) outputBundle { |
| 1316 | return listBundle( |
| 1317 | contract.NetworkSubscriptionsResponse{Subscriptions: subscriptions}, |
| 1318 | subscriptions, |
| 1319 | "Network Subscriptions", |
| 1320 | []string{networkChannelValue, taskThreadValue, taskPeerValue, networkModeValue, "Keywords"}, |
| 1321 | "network_subscriptions", |
| 1322 | []string{networkChannelKey, networkThreadIDKey, networkPeerIDKey, networkModeKey, "keyword_filters"}, |
| 1323 | func(subscription NetworkSubscriptionRecord) []string { |
| 1324 | return []string{ |
| 1325 | stringOrDash(subscription.Channel), |
| 1326 | stringOrDash(subscription.ThreadID), |
| 1327 | stringOrDash(subscription.PeerID), |
| 1328 | stringOrDash(subscription.Mode), |
| 1329 | stringOrDash(strings.Join(subscription.KeywordFilters, ", ")), |
| 1330 | } |
| 1331 | }, |
| 1332 | func(subscription NetworkSubscriptionRecord) []string { |
| 1333 | return []string{ |
| 1334 | subscription.Channel, |
| 1335 | subscription.ThreadID, |
| 1336 | subscription.PeerID, |
| 1337 | subscription.Mode, |
| 1338 | strings.Join(subscription.KeywordFilters, ","), |
| 1339 | } |
| 1340 | }, |
| 1341 | ) |
| 1342 | } |
| 1343 | |
| 1344 | func networkSubscriptionBundle(subscription NetworkSubscriptionRecord) outputBundle { |
| 1345 | return outputBundle{ |
no test coverage detected