This commit is contained in:
Miek Gieben 2012-08-25 20:57:26 +02:00
parent ddcd9fb960
commit b22e2787fa
1 changed files with 2 additions and 2 deletions

View File

@ -8,12 +8,12 @@ import (
"sync"
)
// Zone represents a DNS zone.
// Zone represents a DNS zone. The structure is safe for concurrent access.
type Zone struct {
Origin string // Origin of the zone
Wildcard int // Whenever we see a wildcard name, this is incremented
*radix.Radix // Zone data
mutex *sync.RWMutex
mutex *sync.RWMutex
}
// ZoneData holds all the RRs having their owner name equal to Name.