Add notification function on zone changed
This commit is contained in:
parent
a5a709cd2a
commit
d18bb64db1
5
zone.go
5
zone.go
|
@ -29,6 +29,11 @@ type Zone struct {
|
|||
// The zone's security status, supported values are TypeNone for no DNSSEC,
|
||||
// TypeNSEC for an NSEC type zone and TypeNSEC3 for an NSEC3 signed zone.
|
||||
Security int
|
||||
// If not nil, this function is called after each modification
|
||||
// current == nil, update != nil -> update RR was added to the zone
|
||||
// current != nil, update != nil -> update RR is changed from current to update
|
||||
// current != nil, update == nil -> current RR is removed from the zone
|
||||
NotifyFunc func(current, update RR)
|
||||
}
|
||||
|
||||
type sortedNames struct {
|
||||
|
|
Loading…
Reference in New Issue