Versions in this module Expand all Collapse all v0 v0.0.9 Jul 29, 2023 v0.0.8 Nov 1, 2021 Changes in this version + const BinaryType + const MaxPayloadSize + const StringType + var ErrMaxPayloadSize = errors.New("MaxPayloadSize exceeded") + type Binary []byte + func (b *Binary) ReadFrom(r io.Reader) (int64, error) + func (b Binary) Bytes() []byte + func (b Binary) String() string + func (b Binary) WriteTo(w io.Writer) (int64, error) + type Payload interface + Bytes func() []byte + type String string + func (s *String) ReadFrom(r io.Reader) (int64, error) + func (s String) Bytes() []byte + func (s String) String() string + func (s String) WriteTo(w io.Writer) (int64, error)