Documentation
¶
Overview ¶
Package tree implements a in-memory tree / node structure to store and retrieve resource record data
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AddChild ¶
AddChild adds a child to this node or returns an error if the child already exists
func (*Node) AddRecords ¶
AddRecords adds records to this node
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree describes a tree structure which stores data for DNS labels
func (*Tree) Get ¶
Get retrieves a node via a name. Example: example.com traverses the tree like . -> com -> example
func (*Tree) Populate ¶
Populate traverses the tree and adds nodes along the path which don't exist yet
Click to show internal directories.
Click to hide internal directories.