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

Method StringRoutes

state/routing.go:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61func (s *RouterState) StringRoutes() string {
62 buf := make([]string, 0)
63 for prefix, route := range s.Routes {
64 buf = append(buf, fmt.Sprintf("%s via %s", prefix, route))
65 }
66 slices.Sort(buf)
67 return strings.Join(buf, "\n")
68}
69
70type Neighbour struct {
71 Id NodeId

Calls

no outgoing calls