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 ¶
Types ¶
type KeyType ¶
type KeyType string
KeyType represents the DKIM key type (e.g., "rsa").
const (
KeyTypeRSA KeyType = "rsa"
)
k=
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.
Click to show internal directories.
Click to hide internal directories.