MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / splitCheckResults

Function splitCheckResults

internal/panel/handler.go:525–534  ·  view source on GitHub ↗

─── 节点管理 ─────────────────────────────────────────────────────────────────

(all []nodes.CheckResult)

Source from the content-addressed store, hash-verified

523// ─── 节点管理 ─────────────────────────────────────────────────────────────────
524
525func splitCheckResults(all []nodes.CheckResult) (direct, proxied []nodes.CheckResult) {
526 for _, cr := range all {
527 if cr.CheckType == "proxied" {
528 proxied = append(proxied, cr)
529 } else {
530 direct = append(direct, cr)
531 }
532 }
533 return
534}
535
536func (h *Handler) ApplyNodes(nodeIDs []string) {
537 for _, nodeID := range nodeIDs {

Callers 1

buildStatPayloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected