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

Method TryApply

integration/harness.go:253–258  ·  view source on GitHub ↗

return true to intercept, and stop the rest of the stack

(node state.NodeId, src, dst netip.Addr, data []byte)

Source from the content-addressed store, hash-verified

251
252type PacketFilter func(node state.NodeId, src, dst netip.Addr, data []byte) bool // return true to intercept, and stop the rest of the stack
253func (h PacketFilter) TryApply(node state.NodeId, src, dst netip.Addr, data []byte) bool {
254 if h == nil {
255 return false
256 }
257 return h(node, src, dst, data)
258}
259
260type OutMapping func(curNode state.NodeId, to bindtest.ChannelEndpoint2) bindtest.ChannelEndpoint2
261

Callers 1

virtualRouteTableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected