Documentation
¶
Index ¶
Constants ¶
View Source
const ( XMLNSIDMEFUrl = "http://iana.org/idmef" XMLNSIDMEFVersion = "1.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { MessageId string `xml:"messageid,attr"` Analyzer Analyzer `xml:"idmef:Analyzer"` // Exactly one. CreateTime Time `xml:"idmef:CreateTime"` // Exactly one. DetectTime *Time `xml:"idmef:DetectTime"` // Zero or one AnalyzerTime *Time `xml:"idmef:AnalyzerTime"` // Zero or one. Source []Source `xml:"idmef:Source"` // Zero or more. Target []Source `xml:"idmef:Target"` // Zero or more. Classification Classification `xml:"idmef:Classification"` // Exactly one. }
type Classification ¶
type Message ¶
type Message struct { XMLName xml.Name `xml:"idmef:IDMEF-Message"` XMLNSIDMEF string `xml:"xmlns:idmef,attr"` Version string `xml:"version,attr"` Alert *Alert `xml:"idmef:Alert"` }
Message is for authoring. For parsing use `github.com/grokify/go-idmef/unmarshal/Message`.
Click to show internal directories.
Click to hide internal directories.