SelectorForTime is the testable variant of SelectorForNow.
(t time.Time)
| 51 | |
| 52 | // SelectorForTime is the testable variant of SelectorForNow. |
| 53 | func SelectorForTime(t time.Time) string { |
| 54 | return fmt.Sprintf("e2a%04d%02d", t.Year(), int(t.Month())) |
| 55 | } |
| 56 | |
| 57 | // Keypair is the result of GenerateKeypair. PrivateKeyDER is suitable |
| 58 | // for direct BYTEA storage; PublicKeyDNS is the literal "p=" value for |
no outgoing calls