Documentation
¶
Index ¶
- func Fqdn(name []byte) []byte
- func Load(data []byte) (r *Zonefile, e *ParsingError)
- func StringToTTL(token string) (uint32, bool)
- 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) Equal(e2 Entry) bool
- func (e Entry) RRType() uint16
- func (e *Entry) SetDomain(v []byte) error
- func (e *Entry) SetValue(i int, v []byte) error
- func (e Entry) TTL() *int
- func (e Entry) Type() []byte
- func (e Entry) Value(use tokenUse, transfunc func([]byte) []byte) []byte
- func (e Entry) Values() (ret [][]byte)
- func (e Entry) ValuesStrings() []string
- 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
func StringToTTL ¶
StringToTTL parses things like 2w, 2m, etc, and returns the time in seconds.
Types ¶
type Entry ¶
type Entry struct {
IsControl bool // is this a ($INCLUDE, $TTL, ...) directive?
IsComment bool // is this a comment
// contains filtered or unexported fields
}
Represents an entry in the zonefile
func (Entry) ValuesStrings ¶
type ParsingError ¶
func (*ParsingError) Error ¶
func (e *ParsingError) Error() string
Click to show internal directories.
Click to hide internal directories.