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

Method LogValue

state/routing.go:126–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126func (r SelRoute) LogValue() slog.Value {
127 return slog.GroupValue(
128 slog.Any("nh", r.Nh), // Use Any if Nh is an object/interface
129 slog.String("router", string(r.NodeId)),
130 slog.String("prefix", r.Prefix.String()),
131 slog.Uint64("seqno", uint64(r.Seqno)),
132 slog.Uint64("metric", uint64(r.Metric)),
133 )
134}
135
136func (s *RouterState) GetNeighbour(node NodeId) *Neighbour {
137 nIdx := slices.IndexFunc(s.Neighbours, func(neighbour *Neighbour) bool {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected