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

Method IsClient

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

Source from the content-addressed store, hash-verified

405}
406
407func (e *CentralCfg) IsClient(node NodeId) bool {
408 idx := slices.IndexFunc(e.Clients, func(cfg ClientCfg) bool {
409 return cfg.Id == node
410 })
411 return idx != -1
412}
413
414func (e *CentralCfg) IsNode(node NodeId) bool {
415 return e.IsRouter(node) || e.IsClient(node)

Callers 6

IsNodeMethod · 0.95
SyncWireGuardMethod · 0.80
buildNeighboursFunction · 0.80
scanPassivePeersFunction · 0.80
CentralConfigValidatorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected