package
1.20.0
Repository: https://github.com/matrix86/driplane.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DirExists returns true if the directory is present on disk.
ExtractTextFromHTML returns a string with only the text version of the web page.
FileExists returns true if the file is present on disk.
FlatStruct tries to flat a struct object in a map[string]string.
GetGlobalTTLMapInstance returns the unique GlobalTTLMap (singleton).
GetMetaFromHTML extracts info from an HTML page and store them on a HTMLMeta struct.
GetNamedTTLMap return a Cache stored on the globalTTLMap with a name.
IsFlagPassed returns true if the flag is present on the command line.
Md5File calculate the MD5 Hash of a file.
MD5Sum calculate the MD5 Hash of a string or []byte.
NewTTLMap creates a TTLMap instance.
ParseCookieFile transforms JSON file in slice of http.Cookie.
Sha1File calculate the SHA1 Hash of a file.
Sha256File calculate the SHA256 Hash of a file.
Sha512File calculate the SHA512 Hash of a file.

# Structs

GlobalTTLMap is a cache shared between all the rules.
HTMLMeta contains information from the HTML page.
TTLMap is a cache with ttl.

# Type aliases

Cookies maps the json file exported from Chrome containing the cookies.