Documentation
¶
Overview ¶
Package binary implements a MessagePack-based binary codec for JSON Patch operations.
The binary codec uses the same operation tree as the compact codec: paths are encoded as segment arrays, optional false fields are omitted, and composite predicate children use paths relative to the containing predicate path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedOp indicates an unknown or unsupported operation code. ErrUnsupportedOp = errors.New("unsupported operation code") // ErrInvalidPredicate indicates a composite predicate contains a non-predicate operation. ErrInvalidPredicate = errors.New("invalid predicate operation") // ErrNotSinglePredicate indicates a not operation has anything other than one child predicate. ErrNotSinglePredicate = errors.New("not operation requires exactly one predicate") // ErrInvalidTestTypeFormat indicates invalid types array for test_type predicate. ErrInvalidTestTypeFormat = errors.New("invalid test_type types format") // ErrInvalidValueType indicates the decoded value has an unexpected type. ErrInvalidValueType = errors.New("invalid value type") // ErrInvalidFrameArity indicates an operation frame has the wrong number of fields. ErrInvalidFrameArity = errors.New("invalid operation frame arity") // ErrTrailingData indicates bytes remain after a complete patch value. ErrTrailingData = errors.New("trailing data after patch") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.