MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / SelectorForNow

Function SelectorForNow

internal/dkim/dkim.go:48–50  ·  view source on GitHub ↗

SelectorForNow returns the selector used for new keypairs at the current wall-clock month. The "e2a" prefix scopes the selector to this product so users hosting both e2a and another mail provider under the same domain can keep selectors disjoint. The YYYYMM tail lets us rotate selectors monthly with

()

Source from the content-addressed store, hash-verified

46// records — the rotated row reuses the same column, but selector
47// changes mean DNS lookups land on a new key.
48func SelectorForNow() string {
49 return SelectorForTime(time.Now().UTC())
50}
51
52// SelectorForTime is the testable variant of SelectorForNow.
53func SelectorForTime(t time.Time) string {

Callers 1

GenerateKeypairFunction · 0.85

Calls 1

SelectorForTimeFunction · 0.85

Tested by

no test coverage detected