dkim

package
v0.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

func ParseParams(s string) (map[string]string, error)

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

func FromRecordFile(r io.Reader) (*Record, error)

FromRecordFile parses a DKIM record from a file.

func (*Record) RecordPrefix

func (r *Record) RecordPrefix() string

RecordPrefix returns the default DNS prefix for DKIM records.

func (*Record) RecordType

func (r *Record) RecordType() string

RecordType returns the DNS record type for DKIM records.

func (*Record) RecordValue

func (r *Record) RecordValue() string

RecordValue returns the formatted DKIM record value.

func (*Record) String

func (r *Record) String() string

String returns the string representation of the DKIM record.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL