Documentation ¶
Index ¶
- func AppendToFile(data string, filePath string) error
- func CollectJsonKeys(json map[string]interface{}, reqJsonKeys map[string]struct{}) map[string]struct{}
- func DownloadFromURL(url *url.URL, folder string) error
- func FileExists(name string) bool
- func ReadLines(path string) ([]string, error)
- func SendSlackNotification(webhookUrl string, msg string) error
- func UnmarshalReqBody(reqBody string) (unmarshaled map[string]interface{}, err error)
- func WriteUniqueFile(host string, checksum string, body string, outputDir string, httpDump string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToFile ¶
* Takes data and writes it to a file
func CollectJsonKeys ¶ added in v0.3.0
func CollectJsonKeys(json map[string]interface{}, reqJsonKeys map[string]struct{}) map[string]struct{}
* Recursively collects keys from JSON object * Returns a collection of unique keys as map[string]struct{}
func DownloadFromURL ¶ added in v0.6.0
* Download a file from a url into a folder
func SendSlackNotification ¶ added in v0.3.0
* Send a slack notification via webhook
func UnmarshalReqBody ¶ added in v0.3.0
* Unmarshal the request body
func WriteUniqueFile ¶ added in v0.3.0
func WriteUniqueFile(host string, checksum string, body string, outputDir string, httpDump string, ext string)
* Creates a uniquely named file and write http dump to it. * The file name represents a hashed host, path and request body. * This means that any request and it's resposne are named with the same hash. * This makes it easy to go through and read them, when opened with "vim *"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.