safebrowsing

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePatterns

func GeneratePatterns(url string) ([]string, error)

GeneratePatterns from url

func ParseURL

func ParseURL(url string) (*url.URL, bool)

ParseURL parses the given string and returns the results and true if the url was Safe Browsing cmopatible.

func ValidURL

func ValidURL(url string) bool

ValidURL parses the given string and returns true if it is a Safe Browsing compatible URL.

In general, clients can (and should) just call LookupURLs, which performs the same checks internally. This method can be useful when checking a batch of URLs, as the first parse failure will cause LookupURLs to stop processing the request and return an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL