Versions in this module Expand all Collapse all v0 v0.2.0 Nov 12, 2026 v0.1.0 Sep 5, 2026 Changes in this version + func WithLock(path string, fn func() error) error + type CategoryState struct + Description string + Enabled bool + Warning string + type Compiled struct + Allow []*regexp.Regexp + Block []*regexp.Regexp + Disabled map[string]bool + ForcedDomains map[string]bool + UnresolvedDomainEntries []string + type Config struct + Allow []Entry + Block []Entry + Categories map[string]CategoryState + func Load(path string) (*Config, error) + func (c *Config) Compile() (*Compiled, error) + func (c *Config) EnsureAllCategories(all []redact.CategoryInfo) (changed bool, dropped []string) + func (c *Config) RemoveValue(value string) (removedFromBlock, removedFromAllow bool) + func (c *Config) Save(path string) error + func (c *Config) Validate() error + type Entry struct + IsDomain bool + Note string + Regex bool + Value string + func FindEntry(entries []Entry, value string) (Entry, bool) + type Watcher struct + func NewWatcher(path string, interval time.Duration, onChange func(*Config), ...) *Watcher + func (w *Watcher) Start() + func (w *Watcher) Stop()