mirror of
https://git.vectorsigma.ru/public/AdGuardHome.git
synced 2026-08-03 19:19:21 +00:00
23 lines
614 B
Go
23 lines
614 B
Go
// Package agh contains common entities and interfaces of AdGuard Home.
|
|
package agh
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// ConfigModifier defines an interface for updating the global configuration.
|
|
type ConfigModifier interface {
|
|
// Apply applies changes to the global configuration.
|
|
Apply(ctx context.Context)
|
|
}
|
|
|
|
// EmptyConfigModifier is an empty [ConfigModifier] implementation that does
|
|
// nothing.
|
|
type EmptyConfigModifier struct{}
|
|
|
|
// type check
|
|
var _ ConfigModifier = EmptyConfigModifier{}
|
|
|
|
// Apply implements the [ConfigModifier] for EmptyConfigModifier.
|
|
func (em EmptyConfigModifier) Apply(ctx context.Context) {}
|