Versions in this module Expand all Collapse all v5 v5.12.1 Aug 22, 2024 v5.12.0 Aug 22, 2024 Changes in this version + const MaxPayloadSize + const OversizePayloadMax + var ErrInvalidErrorLine = errors.New("expected an error-line") + var ErrInvalidPktLen = errors.New("invalid pkt-len found") + var ErrPayloadTooLong = errors.New("payload is too long") + var Flush = []byte + var FlushPkt = []byte + var FlushString = "" + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(payloads ...[]byte) error + func (e *Encoder) EncodeString(payloads ...string) error + func (e *Encoder) Encodef(format string, a ...interface{}) error + func (e *Encoder) Flush() error + type ErrorLine struct + Text string + func (e *ErrorLine) Decode(r io.Reader) error + func (e *ErrorLine) Encode(w io.Writer) error + func (e *ErrorLine) Error() string + type Scanner struct + func NewScanner(r io.Reader) *Scanner + func (s *Scanner) Bytes() []byte + func (s *Scanner) Err() error + func (s *Scanner) Scan() bool