Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(pdnsAPIURL, pdnsAPIKey string, adminAddr string, logger *slog.Logger, operatorDeps *OperatorDeps) (http.Handler, error)
NewHandler returns an http.Handler that serves the powerdns-webui at /, reverse-proxies /api/ requests to the PowerDNS API, and mounts operator endpoints under /operator/ (census, recovery, trust management). adminAddr is the configured listen address (e.g., "127.0.0.1:8056") for CSRF origin validation.
Types ¶
type OperatorDeps ¶ added in v0.1.5
type OperatorDeps struct {
CensusStore *store.CensusStore
DeviceStore *store.DeviceStore
AuditStore *store.AuditStore
RecoveryStore *store.RecoveryStore
AccountStore *store.AccountStore
CensusSvc *service.CensusService
RecoverySvc *service.RecoveryService
}
OperatorDeps holds dependencies for operator API endpoints on the admin server.
Click to show internal directories.
Click to hide internal directories.