dkim

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 17 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.

func RunClient added in v0.9.0

func RunClient(
	ctx context.Context,
	waveClient *wave.Client,
	config Config,
) error

RunClient runs wave client sending DKIM config to DNS servers.

Types

type Config added in v0.9.0

type Config struct {
	Provider      string
	PublicKey     crypto.PublicKey
	PrivateKeyPEM []byte
}

Config stores DKIM config.

func NewConfig added in v0.9.0

func NewConfig(appName string) Config

NewConfig creates new DKIM config.

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