Documentation
¶
Index ¶
Constants ¶
View Source
const Prefix = "v=DKIM1"
Variables ¶
View Source
var ( ErrVNotFirstTag = errors.New("v not first tag") ErrMalformedTag = errors.New("malformed tag") ErrMultipleTagPaths = errors.New("multiple tag paths") ErrDuplicateTags = errors.New("duplicate tags") ErrMissingPublicKeyData = errors.New("missing public key data") ErrMalformedPublicKeyData = errors.New("malformed public key data") ErrUnexpectedTag = errors.New("unexpected tag") ErrUnexpectedTagType = errors.New("unexpected tag type") ErrMissingRequiredTag = errors.New("missing required tag") )
View Source
var DkimGrammar *abnf.Grammar
View Source
var ErrBadEd25519Length = errors.New("bad ed25519 length")
Functions ¶
func GetKeyData ¶
Types ¶
type Header ¶
type Header struct {
Version int `json:"version,omitzero"`
Algorithm string `json:"algorithm,omitzero"`
Signature string `json:"signature,omitzero"`
Hash string `json:"hash,omitzero"`
MessageCanonicalization string `json:"message_canonicalization,omitzero"`
SigningDomainIdentifier string `json:"signing_domain_identifier,omitzero"`
SignedHeaderFields []string `json:"signed_header_fields,omitzero"`
AgentOrUserIdentifier string `json:"agent_or_user_identifier"`
BodyLengthCount string `json:"body_length_count,omitzero"`
QueryMethods []string `json:"query_methods,omitzero"`
Selector string `json:"selector,omitzero"`
SignatureTimestamp string `json:"signature_timestamp,omitzero"`
SignatureExpiration string `json:"signature_expiration,omitzero"`
CopiedHeaderFields [][2]string `json:"copied_header_fields,omitzero"`
Raw string `json:"raw,omitzero"`
Domain string `json:"domain,omitzero"`
Extensions [][2]string `json:"extensions,omitzero"`
}
func ParseHeader ¶
type Record ¶
type Record struct {
Version int `json:"version,omitzero"`
AcceptableHashAlgorithms []string `json:"acceptable_hash_algorithms,omitzero"`
KeyType string `json:"key_type,omitzero"`
Notes string `json:"notes,omitzero"`
PublicKeyData string `json:"public_key_data,omitzero"`
ServiceType string `json:"service_type,omitzero"`
Flags []string `json:"flags,omitzero"`
Raw string `json:"raw,omitzero"`
Domain string `json:"domain,omitzero"`
Selector string `json:"selector,omitzero"`
Extensions [][2]string `json:"extensions,omitzero"`
}
func ParseRecord ¶
func (*Record) GetKeyType ¶
func (*Record) GetServiceType ¶
func (*Record) GetVersion ¶
Click to show internal directories.
Click to hide internal directories.