Refactored the mocked clock.

Refactored some common code in the Zone lookups
This commit is contained in:
Alvaro Saurin committed 2015-05-26 10:53:12 +02:00
1 parent 04e4ef214c
commit 87a2886539
6 files changed
+105 -130

No files matched your search

+2
View File
@@ -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