Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDataURL ¶
ParseDataURL tries to parse JS-provided file uploads in base64 format it gets a string blob as an input and outputs the MIME and payload example input: data:application/zip;base64,UEsDBAoAAAAIAOhM71TvxiWD5 example output: "application/zip", an IO reader containing actual bytes
func ParseGzipFile ¶
ParseGzipFile is a small helper function used to convert a GZ io reader into a file io reader, essentially streaming gz formatted text back to the caller
Types ¶
type AfrfReport ¶
type AfrfReport struct { //XMLName xml.Name `xml:"feedback"` Version string `xml:"version"` Metadata dmarcMetadata `xml:"report_metadata"` Policy dmarcPolicy `xml:"policy_published"` Records []dmarcRecord `xml:"record"` }
AfrfReport is the outline of the XML
type DmarcDns ¶
type DmarcDns struct { V string `desc:"Protocol version"` Pct uint8 `desc:"Percentage of messages subjected to filtering"` Ruf string `desc:"Reporting URI for forensic reports"` Rua string `desc:"Reporting URI of aggregate reports"` P string `desc:"Policy for organizational domain"` Sp string `desc:"Policy for subdomains of the OD"` Adkim string `desc:"Alignment mode for DKIM"` Aspf string `desc:"Alignment mode for SPF"` }
Click to show internal directories.
Click to hide internal directories.