Documentation ¶
Index ¶
- Variables
- type Reader
- func (reader *Reader) CopyAll(writer io.Writer, validate bool) error
- func (reader *Reader) CopyTo(writer io.Writer, validate bool) error
- func (reader *Reader) GetBody(validate bool) ([]byte, error)
- func (reader *Reader) HasBody() bool
- func (reader *Reader) Next() (*format.Preamble, interface{}, error)
- type ReaderState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExpectedHeader = errors.New("expected a header, got something else") ErrUnexpectedData = errors.New("unexpected data length for record type") ErrExpectedContinue = errors.New("expected continue, got other") ErrUnexpectedControl = errors.New("unexpected control message") ErrUnknownRecordType = errors.New("unknown record type") ErrHashMismatch = errors.New("hash does not match") ErrState = errors.New("tried reading body before you got a header") )
Functions ¶
This section is empty.
Types ¶
type ReaderState ¶
type ReaderState int
const ( STATE_EMPTY ReaderState = 0 STATE_OK ReaderState = 1 STATE_BODY ReaderState = 2 )
Click to show internal directories.
Click to hide internal directories.