Documentation ¶ Index ¶ type MX func (mx MX) Marshal(kind string) ([]byte, error) func (mx *MX) Query(ctx context.Context, server string) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MX ¶ type MX struct { QueryDomain string `desc:"Queried Domain"` Records []mxRecord `desc:"List of MX records returned"` } func (MX) Marshal ¶ func (mx MX) Marshal(kind string) ([]byte, error) Marshal provides a way to show a DMARC report in different formats func (*MX) Query ¶ func (mx *MX) Query(ctx context.Context, server string) (err error) Query function takes a top level domain name (google.com) and returns the MX TXT record associated with it. it uses the system's resolver if server is provided as 0.0.0.0 otherwise it'll explicity query from the requested server. Source Files ¶ View all Source files query.go Click to show internal directories. Click to hide internal directories.