Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionKey = "v" AlgorithmKey = "a" DomainKey = "d" SelectorKey = "s" CanonicalizationKey = "c" QueryMethodKey = "q" BodyLengthKey = "l" TimestampKey = "t" ExpireKey = "x" FieldsKey = "h" BodyHashKey = "bh" SignatureDataKey = "b" AUIDKey = "i" CopiedFieldsKey = "z" )
View Source
const (
AlgorithmSHA256 = "rsa-sha256"
)
View Source
const (
SignatureHeaderKey = "DKIM-Signature"
)
Variables ¶
View Source
var StdSignableHeaders = []string{ "Cc", "Content-Type", "Date", "From", "Reply-To", "Subject", "To", SignatureHeaderKey, }
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header string
func (Header) Component ¶
Component returns the raw header component. Components are separated by colons.
type HeaderList ¶
type HeaderList []Header
func ParseHeaderList ¶
func ParseHeaderList(header []byte) (list HeaderList)
func (HeaderList) Canonical ¶
func (l HeaderList) Canonical(relaxed bool) string
func (HeaderList) Fields ¶
func (l HeaderList) Fields() string
func (HeaderList) Get ¶
func (l HeaderList) Get(key string) (h Header)
Click to show internal directories.
Click to hide internal directories.