dkim

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Port is the port DKIM server listens on.
	Port = 81

	// RefreshInterval is the interval records should be refreshed with.
	RefreshInterval = time.Minute
)

Variables

This section is empty.

Functions

func Domain

func Domain(provider, domain string) string

Domain returns DKIM domain for provider and domain.

func IsDKIMQuery

func IsDKIMQuery(query, domain string) bool

IsDKIMQuery checks if query is related to DKIM.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is the DKIM handler accepting DNS record requests.

func New

func New(waveServers []string) *Handler

New creates new DKIM handler.

func (*Handler) PublicKey

func (h *Handler) PublicKey(query, domain string) string

PublicKey returns base64-encoded public key for provider.

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

Run runs DKIM handler.

Directories

Path Synopsis
generator command

Jump to

Keyboard shortcuts

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