mirror of
https://github.com/coredns/coredns.git
synced 2026-07-18 13:40:12 -04:00
plugin/secondary: serve catalog member zones (#8230)
Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
@@ -13,9 +13,20 @@ import (
|
||||
type Secondary struct {
|
||||
file.File
|
||||
|
||||
catalogMu sync.RWMutex
|
||||
catalogs map[string]*catalog.Catalog
|
||||
catalogZones map[string]struct{}
|
||||
zoneMu sync.RWMutex
|
||||
zoneNames map[*file.Zone]string
|
||||
dynamicZones map[string]*dynamicZone
|
||||
|
||||
catalogMu sync.RWMutex
|
||||
catalogs map[string]*catalog.Catalog
|
||||
catalogZones map[string]struct{}
|
||||
catalogMemberZones map[string]map[string]struct{}
|
||||
}
|
||||
|
||||
type dynamicZone struct {
|
||||
catalog string
|
||||
shutdown chan bool
|
||||
stopOnce sync.Once
|
||||
}
|
||||
|
||||
// Name implements the Handler interface.
|
||||
|
||||
Reference in New Issue
Block a user