Documentation
¶
Overview ¶
Package framing offers RFC6242 end-of-message and chunked framing decoders.
The functions in this package return bufio.SplitFunc for use with a *bufio.Scanner. These functions will return io.ErrUnexpectedEOF when input terminates other than at the end of a message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitChunked ¶
SplitChunked returns a bufio.SplitFunc suitable for decoding "chunked framing" NETCONF transport streams.
endOfMessage will be called at the end of each NETCONF message.
It must only be used with bufio.Scanner who have a buffer of at least 16 bytes.
Types ¶
type ErrBadChunk ¶
func (ErrBadChunk) Error ¶
func (e ErrBadChunk) Error() string
Click to show internal directories.
Click to hide internal directories.