neoneo-go/pkg/network/payload/payloader.go
2018-01-28 08:03:18 +01:00

13 lines
290 B
Go

package payload
import (
"encoding"
)
// Payloader is anything that can be binary marshaled and unmarshaled.
// Every payload embbedded in messages need to satisfy the Payloader interface.
type Payloader interface {
encoding.BinaryMarshaler
encoding.BinaryUnmarshaler
Size() uint32
}