Documentation ¶
Overview ¶
Package configmgr defines the AdGuard Home on-disk configuration entities and configuration manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles full and partial changes in the configuration, persisting them to disk if necessary.
func New ¶
New creates a new *Manager that persists changes to the file pointed to by fileName. It reads the configuration file and populates the service fields. start is the startup time of AdGuard Home.
func (*Manager) DNS ¶
func (m *Manager) DNS() (dns agh.ServiceWithConfig[*dnssvc.Config])
DNS returns the current DNS service. It is safe for concurrent use.
func (*Manager) UpdateDNS ¶
UpdateDNS implements the websvc.ConfigManager interface for *Manager. The fields of c must not be modified after calling UpdateDNS.
func (*Manager) UpdateWeb ¶
UpdateWeb implements the websvc.ConfigManager interface for *Manager. The fields of c must not be modified after calling UpdateWeb.