MCPcopy Create free account
hub / github.com/encodeous/nylon / IsRouter

Method IsRouter

state/config.go:400–405  ·  view source on GitHub ↗
(node NodeId)

Source from the content-addressed store, hash-verified

398}
399
400func (e *CentralCfg) IsRouter(node NodeId) bool {
401 idx := slices.IndexFunc(e.Routers, func(cfg RouterCfg) bool {
402 return cfg.Id == node
403 })
404 return idx != -1
405}
406
407func (e *CentralCfg) IsClient(node NodeId) bool {
408 idx := slices.IndexFunc(e.Clients, func(cfg ClientCfg) bool {

Callers 4

IsNodeMethod · 0.95
probeNewMethod · 0.80
ApplyCentralConfigMethod · 0.80
reconcileRouterStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected