Documentation
¶
Overview ¶
Package dkim provides utilities for working with DKIM (DomainKeys Identified Mail) records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseParams ¶
ParseParams parses a DKIM-style "tag=value; tag=value" string s into a map, extracting only the v, k, and p tags and ignoring any other (per RFC 6376 section 3.2, unrecognized tags must be ignored, not rejected).
Types ¶
type KeyType ¶
type KeyType string
KeyType represents the DKIM key type (e.g., "rsa").
const (
KeyTypeRSA KeyType = "rsa"
)
DKIM key types, per RFC 6376 section 3.6.1.
type Record ¶
type Record struct {
Version string `mapstructure:"version"`
KeyType string `mapstructure:"key-type"`
PublicKey string `mapstructure:"public-key"`
}
Record represents a DKIM DNS record.
func FromRecordFile ¶
FromRecordFile parses a DKIM record from a file.
func (*Record) RecordPrefix ¶
RecordPrefix returns the default DNS prefix for DKIM records.
func (*Record) RecordType ¶
RecordType returns the DNS record type for DKIM records.
func (*Record) RecordValue ¶
RecordValue returns the formatted DKIM record value.