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

Function networkChannelsBundle

internal/cli/network.go:1252–1273  ·  view source on GitHub ↗
(channels []NetworkChannelRecord)

Source from the content-addressed store, hash-verified

1250}
1251
1252func networkChannelsBundle(channels []NetworkChannelRecord) outputBundle {
1253 return listBundle(
1254 channels,
1255 channels,
1256 "Network Channels",
1257 []string{networkChannelValue, "Peers"},
1258 "network_channels",
1259 []string{networkChannelKey, "peer_count"},
1260 func(channel NetworkChannelRecord) []string {
1261 return []string{
1262 stringOrDash(channel.Channel),
1263 strconv.Itoa(channel.PeerCount),
1264 }
1265 },
1266 func(channel NetworkChannelRecord) []string {
1267 return []string{
1268 channel.Channel,
1269 strconv.Itoa(channel.PeerCount),
1270 }
1271 },
1272 )
1273}
1274
1275func networkChannelBundle(channel NetworkChannelDetailRecord) outputBundle {
1276 fields := []string{

Callers 1

Calls 2

listBundleFunction · 0.85
stringOrDashFunction · 0.85

Tested by

no test coverage detected