admin

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL