dkim

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// 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
	Signer   crypto.Signer
}

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(waveConfig cwave.Config) *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
Package wire provides marshaller for entities.
Package wire provides marshaller for entities.
generator command

Jump to

Keyboard shortcuts

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