neoneo-go/pkg/network/payload/payload.go

10 lines
178 B
Go
Raw Normal View History

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