Documentation ¶
Index ¶
Constants ¶
View Source
const ( TLSHandshakeTimeout = 10 KeepAlive = 30 MinURLLength = 4 )
Variables ¶
View Source
var ( ErrHashNotFound = errors.New("hash not found") ErrHashNotMatching = errors.New("hash not matching hash provided") )
nolint: gochecknoglobals
View Source
var ( ErrMalformedURL = errors.New("malformed input URL") ErrCidrBadFormat = errors.New("malformed input CIDR") )
Functions ¶
func CheckFavicon ¶
CheckFavicon checks if faviconHash is present in the database. If hash (slice) is not empty, it checks also if that faviconHash is one of the inputted hashes. If faviconHash is not found, an error is returned.
func GetFaviconHash ¶
GetFaviconHash computes the murmur3 hash.
func PrepareURL ¶
PrepareURL takes as input a string and prepares the input URL in order to get the favicon icon.
Types ¶
Click to show internal directories.
Click to hide internal directories.