Documentation ¶
Index ¶
- func Load(data []byte) (r *Zonefile, e *ParsingError)
- type Entry
- func (e Entry) Class() []byte
- func (e Entry) Command() []byte
- func (e Entry) Comments() (ret [][]byte)
- func (e Entry) Domain() []byte
- func (e *Entry) SetDomain(v []byte) error
- func (e *Entry) SetTTL(v int) error
- func (e *Entry) SetValue(i int, v []byte) error
- func (e Entry) TTL() *int
- func (e Entry) Type() []byte
- func (e Entry) Values() (ret [][]byte)
- type ParsingError
- type Zonefile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(data []byte) (r *Zonefile, e *ParsingError)
Parse bytestring containing a zonefile
Types ¶
type Entry ¶
type Entry struct { IsControl bool // is this a ($INCLUDE, $TTL, ...) directoive? IsComment bool // is this a comment // contains filtered or unexported fields }
Represents an entry in the zonefile
type ParsingError ¶
func (*ParsingError) Error ¶
func (e *ParsingError) Error() string
Click to show internal directories.
Click to hide internal directories.