neoneo-go/pkg/network/payload/payloader.go
2018-01-27 16:47:43 +01:00

11 lines
264 B
Go

package payload
import "io"
// Payloader is anything that can be binary encoded and decoded.
// Every payload used in messages need to satisfy the Payloader interface.
type Payloader interface {
Encode(io.Writer) error
Decode(io.Reader) error
Size() uint32
}