Documentation ¶
Overview ¶
Package safesearch contains helpers for Google and YouTube safe search related policies.
Index ¶
Constants ¶
View Source
const ( ForceYouTubeRestrictDisabled = iota ForceYouTubeRestrictModerate ForceYouTubeRestrictStrict )
ForceYouTubeRestrict policy values.
Variables ¶
This section is empty.
Functions ¶
func TestGoogleSafeSearch ¶
TestGoogleSafeSearch checks whether safe search is automatically enabled for Google search.
func TestYouTubeRestrictedMode ¶
func TestYouTubeRestrictedMode(ctx context.Context, br ash.ConnSource, expectedStrongContentRestricted, expectedMildContentRestricted bool) error
TestYouTubeRestrictedMode checks whether strong and mild content is restricted as expected, and returns an error if it isn't.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.