more stuff
This commit is contained in:
parent
a6611e8c33
commit
68f08416ff
19
zone.go
19
zone.go
|
@ -16,5 +16,22 @@ type ZoneData struct {
|
|||
RR map[uint16][]RR // Map ...
|
||||
Signatures map[uint16][]*RR_RRSIG // DNSSEC signatures
|
||||
Glue bool // True if the A and AAAA record are glue
|
||||
// nsec3, next
|
||||
}
|
||||
|
||||
func lessZone(a, b interface{}) bool { return a.(string) < b.(string) }
|
||||
|
||||
// New ...
|
||||
func New(name string) *Zone {
|
||||
z := new(Zone)
|
||||
z.Name = name
|
||||
z.Tree = llrb.New(lessZone)
|
||||
return z
|
||||
}
|
||||
|
||||
func (z *Zone) Insert(r RR) {
|
||||
zd := z.Tree.Get(r.Header().Name)
|
||||
}
|
||||
|
||||
func (z *Zone) Remove(r RR) {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue