2018-01-27 15:00:28 +00:00
|
|
|
package payload
|
|
|
|
|
2018-01-28 07:03:18 +00:00
|
|
|
import (
|
|
|
|
"encoding"
|
|
|
|
)
|
2018-01-27 15:00:28 +00:00
|
|
|
|
2018-01-28 07:03:18 +00:00
|
|
|
// Payloader is anything that can be binary marshaled and unmarshaled.
|
|
|
|
// Every payload embbedded in messages need to satisfy the Payloader interface.
|
2018-01-27 15:00:28 +00:00
|
|
|
type Payloader interface {
|
2018-01-28 07:03:18 +00:00
|
|
|
encoding.BinaryMarshaler
|
|
|
|
encoding.BinaryUnmarshaler
|
2018-01-27 15:00:28 +00:00
|
|
|
Size() uint32
|
|
|
|
}
|