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

Function collectUserIDs

internal/panel/handler.go:624–634  ·  view source on GitHub ↗
(accesses []users.UserInbound)

Source from the content-addressed store, hash-verified

622}
623
624func collectUserIDs(accesses []users.UserInbound) []string {
625 seen := make(map[string]struct{})
626 out := make([]string, 0)
627 for _, acc := range accesses {
628 if _, ok := seen[acc.UserID]; !ok {
629 seen[acc.UserID] = struct{}{}
630 out = append(out, acc.UserID)
631 }
632 }
633 return out
634}
635
636// ─── 用户自助门户 API ─────────────────────────────────────────────────────────
637

Callers 1

ApplyNodesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected