validator

package
v0.0.0-...-d62ea78 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

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

type MailInfo

type MailInfo struct {
	// contains filtered or unexported fields
}

MailInfo contains the result of processing a given mail.

Jump to

Keyboard shortcuts

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