package router const ( Protocol = "weave" ProtocolVersion = 14 ) type ProtocolTag byte const ( ProtocolConnectionEstablished ProtocolTag = iota ProtocolFragmentationReceived ProtocolStartFragmentationTest ProtocolNonce ProtocolPMTUVerified ProtocolGossip ProtocolGossipUnicast ProtocolGossipBroadcast ) type ProtocolMsg struct { tag ProtocolTag msg []byte } type ProtocolSender interface { SendProtocolMsg(m ProtocolMsg) }