Refactored the mocked clock.
Refactored some common code in the Zone lookups
This commit is contained in:
1 parent
04e4ef214c
commit
87a2886539
6 files changed
+105
-130
No files matched your search
@@ -25,6 +25,8 @@ type ZoneLookup interface {
|
||||
LookupInaddr(inaddr string) ([]ZoneRecord, error)
|
||||
}
|
||||
|
||||
type ZoneLookupFunc func(target string) ([]ZoneRecord, error)
|
||||
|
||||
type ZoneObservable interface {
|
||||
// Observe anything that affects a particular name in the zone
|
||||
ObserveName(name string, observer ZoneRecordObserver) error
|
||||
|
||||
Reference in new issue
Block a user