more stuff

This commit is contained in:
Miek Gieben 2012-07-14 22:54:49 +02:00
parent a6611e8c33
commit 68f08416ff
1 changed files with 18 additions and 1 deletions

19
zone.go
View File

@ -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) {
}