Versions in this module Expand all Collapse all v0 v0.6.6 Jun 28, 2022 Changes in this version + var ErrTooManySignatures = errors.New("dkim: too many signatures") + func IsPermFail(err error) bool + func IsTempFail(err error) bool + func Sign(w io.Writer, r io.Reader, options *SignOptions) error + type Canonicalization string + const CanonicalizationRelaxed + const CanonicalizationSimple + type QueryMethod string + const QueryMethodDNSTXT + type SignOptions struct + BodyCanonicalization Canonicalization + Domain string + Expiration time.Time + Hash crypto.Hash + HeaderCanonicalization Canonicalization + HeaderKeys []string + Identifier string + QueryMethods []QueryMethod + Selector string + Signer crypto.Signer + type Signer struct + func NewSigner(options *SignOptions) (*Signer, error) + func (s *Signer) Close() error + func (s *Signer) Signature() string + func (s *Signer) Write(b []byte) (n int, err error) + type Verification struct + Domain string + Err error + Expiration time.Time + HeaderKeys []string + Identifier string + Time time.Time + func Verify(r io.Reader) ([]*Verification, error) + func VerifyWithOptions(r io.Reader, options *VerifyOptions) ([]*Verification, error) + type VerifyOptions struct + AllowInsecureBodyLength bool + LookupTXT func(domain string) ([]string, error) + MaxVerifications int