plugin/secondary: serve catalog member zones (#8230)

Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
houyuwushang
2026-07-10 08:42:30 +08:00
committed by GitHub
parent e4990abfa3
commit 1e01c0ad7c
9 changed files with 368 additions and 67 deletions

View File

@@ -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.