Documentation
¶
Index ¶
- type HashMap
- type Node
- func (node *Node) Addresses() uint
- func (node *Node) Contains(value string) bool
- func (node *Node) ContainsNode(value Node) bool
- func (node *Node) Hash() string
- func (node *Node) IsValid() bool
- func (node *Node) SetAddress(value string)
- func (node *Node) SetName(value string)
- func (node *Node) SetPrefix(value uint8)
- func (node *Node) SetScope(value string)
- func (node *Node) String() string
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashMap ¶
type HashMap struct {
Mapv4 map[uint8]map[string]*Node `json:"mapv4"`
Mapv6 map[uint8]map[string]*Node `json:"mapv6"`
}
func NewHashMap ¶
func NewHashMap() HashMap
func (*HashMap) InsertNode ¶
func (*HashMap) SearchNode ¶
type Node ¶
type Node struct {
Name string `json:"name"`
Address string `json:"address"`
Scope string `json:"scope"`
Type string `json:"type"`
Prefix uint8 `json:"prefix"`
Children []*Node `json:"children"`
}
func (*Node) ContainsNode ¶
func (*Node) SetAddress ¶
Click to show internal directories.
Click to hide internal directories.