Documentation ¶
Index ¶
- Constants
- func ConfirmNonce(nonce [NonceLength]byte, store storage.GetSetDeleter, gpgUtil *gpg.GPG) (*mail.OutgoingMail, error)
- func HandleMail(incomingMail io.Reader, gpgUtil mail.GpgUtility, store storage.GetSetDeleter, ...) (responses []mail.OutgoingMail)
- func NonceFromString(nonceString string) (nonce [NonceLength]byte, err error)
- type MailInfo
Constants ¶
View Source
const NonceLength = 32
NonceLength in byte
Variables ¶
This section is empty.
Functions ¶
func ConfirmNonce ¶
func ConfirmNonce(nonce [NonceLength]byte, store storage.GetSetDeleter, gpgUtil *gpg.GPG) (*mail.OutgoingMail, error)
ConfirmNonce checks the given nonce, and if there is associated information, sends an email with the signed key
func HandleMail ¶
func HandleMail(incomingMail io.Reader, gpgUtil mail.GpgUtility, store storage.GetSetDeleter, host string) (responses []mail.OutgoingMail)
HandleMail returns zero or more outgoing mails in response to an incoming mail.
func NonceFromString ¶
func NonceFromString(nonceString string) (nonce [NonceLength]byte, err error)
NonceFromString parses and returns a nonce from a hex string
Types ¶
Click to show internal directories.
Click to hide internal directories.