2018-01-28 15:06:41 +00:00
|
|
|
package payload
|
|
|
|
|
|
|
|
import "io"
|
|
|
|
|
|
|
|
// Payload is anything that can be binary encoded/decoded.
|
|
|
|
type Payload interface {
|
2019-01-25 11:20:35 +00:00
|
|
|
EncodeBinary(io.Writer) error
|
|
|
|
DecodeBinary(io.Reader) error
|
2018-01-28 15:06:41 +00:00
|
|
|
}
|