2024-01-07 10:12:43 +00:00
|
|
|
package base
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.lumeweb.com/LumeWeb/libs5-go/interfaces"
|
|
|
|
"git.lumeweb.com/LumeWeb/libs5-go/net"
|
|
|
|
"github.com/vmihailenco/msgpack/v5"
|
|
|
|
)
|
|
|
|
|
|
|
|
type IncomingMessage interface {
|
2024-01-07 11:35:41 +00:00
|
|
|
HandleMessage(node interfaces.Node, peer net.Peer, verifyId bool) error
|
2024-01-07 10:12:43 +00:00
|
|
|
SetIncomingMessage(msg IncomingMessage)
|
|
|
|
msgpack.CustomDecoder
|
|
|
|
}
|
|
|
|
|
|
|
|
type IncomingMessageTyped interface {
|
|
|
|
DecodeMessage(dec *msgpack.Decoder) error
|
|
|
|
IncomingMessage
|
|
|
|
}
|