package
0.0.0-20241216201159-46e4ef8c5872
Repository: https://github.com/thehackerdev/cartograph.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ContentTypes returns a weighted vectorized representation of the content types.
CookieKeys converts the given slice of cookie keys to a vector.
CspHeader vectorizes CSP headers into a vector of features.
GenerateContentTypesVector generates a vector of content types for testing purposes.
GenerateCookieKeysVector generates a vector of cookie keys for testing purposes.
GenerateCSPVector creates a vector (a slice of float32 values) that represents a combination of CSP (content-security-policy) header values.
GenerateHeaderKeysVector generates a vector of header keys for testing purposes.
GenerateRequestMethodVector generates a vector of request methods for testing purposes.
GenerateResponseCodeVector generates a vector of response codes for testing purposes.
GenerateServerHeaderVector generates a vector of server headers for testing purposes.
GenerateUrlParamKeysVector generates a vector of URL parameter keys for testing purposes.
HeaderKeys converts the slices of request and response header keys to a vector.
Ip converts the given IP address to a vector for machine learning analysis.
RequestMethod converts the given HTTP request methods into a vector.
ResponseCode converts the given HTTP response codes into a vector.
ServerHeader returns a vectorized representation of the server headers.
UrlParamKeys converts the request parameter keys to a vector of 0s and 1s, where 1 indicates the parameter is present.