Documentation
¶
Overview ¶
Package hashprefix used for safe browsing and parent control.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Logger is used for logging the check process. It must not be nil. Logger *slog.Logger // Upstream is the upstream DNS server. Upstream upstream.Upstream // TXTSuffix is the TXT suffix for DNS request. TXTSuffix string // CacheTime is the time period to store hash. CacheTime time.Duration // CacheSize is the maximum size of the cache. If it's zero, cache size is // unlimited. CacheSize uint }
Config is the configuration structure for safe browsing and parental control.
Click to show internal directories.
Click to hide internal directories.