Files
weave/router/protocol.go
T

28 lines
418 B
Go

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