Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAllowedHostNotValid = errors.New("allowed host is not valid") ErrBlockedHostNotValid = errors.New("blocked host is not valid") )
View Source
var ErrBadStatusCode = errors.New("bad HTTP status code")
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { Client *http.Client BlockMalicious *bool BlockAds *bool BlockSurveillance *bool AllowedHosts []string AllowedIPs []netip.Addr AllowedIPPrefixes []netip.Prefix AddBlockedHosts []string AddBlockedIPs []netip.Addr AddBlockedIPPrefixes []netip.Prefix }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (*Settings) ToLinesNode ¶
Click to show internal directories.
Click to hide internal directories.