Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadOp = errors.New("unrecognised operation")
ErrBadOp is an error returned when the operation is not recognised
View Source
var ErrShortInput = errors.New("input too short")
ErrShortInput is an error returned when the input data is too short
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Op Op // the operation Bytes []byte // argument of the operation - accessible via Arg() or Bytes() Records []dnsdata.MapRecord // vector of map records }
func (*Entry) Parse ¶
Parse analyzes the provided input which must be a single entry (line) of a diff, and populates Op and Bytes fields accordingly. It may return ErrShortInput or ErrBadOp if the input is incomplete or isn't recognised.
func (*Entry) ParseBytes ¶
ParseBytes does the same as Parse() but takes in the []byte type.
Click to show internal directories.
Click to hide internal directories.