Documentation ¶
Overview ¶
Package safesearch implements safesearch host matching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶ added in v0.107.28
type Default struct {
// contains filtered or unexported fields
}
Default is the default safe search filter that uses filtering rules with the dnsrewrite modifier.
func NewDefault ¶ added in v0.107.28
func NewDefault( conf filtering.SafeSearchConfig, name string, cacheSize uint, cacheTTL time.Duration, ) (ss *Default, err error)
NewDefault returns an initialized default safe search filter. name is used for logging.
func (*Default) CheckHost ¶ added in v0.107.28
CheckHost implements the filtering.SafeSearch interface for *Default.
func (*Default) Update ¶ added in v0.107.28
func (ss *Default) Update(conf filtering.SafeSearchConfig) (err error)
Update implements the filtering.SafeSearch interface for *Default. Update ignores the CustomResolver and Enabled fields.
Click to show internal directories.
Click to hide internal directories.