data

package
v0.0.0-...-f9f33af Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Plain string
	Html  string
	Ext   map[string]string
}

func (*Body) QP

func (b *Body) QP() []byte

type Dataer

type Dataer interface {
	Header() http.Header
	Data() []byte
}

type Default

type Default struct {
	H http.Header
	S string
	B *Body
}

func NewDefault

func NewDefault(receivedId, senderDomain, from, to, subject string, body *Body, hs http.Header) *Default

func (*Default) Body

func (d *Default) Body() []byte

func (*Default) Data

func (d *Default) Data() []byte

func (*Default) Date

func (d *Default) Date() string

func (*Default) Header

func (d *Default) Header() http.Header

func (*Default) HeaderByte

func (d *Default) HeaderByte() []byte

func (*Default) MessageId

func (d *Default) MessageId() string

func (*Default) Sender

func (d *Default) Sender() string

func (*Default) Subject

func (d *Default) Subject() string

type Dkim

type Dkim struct {
	*Default
	D string
	S string
	K string
}

func NewDkim

func NewDkim(selector, dkimPrivateKey, receivedId, senderDomain, from, to, subject string, body *Body, hs http.Header) *Dkim

func (*Dkim) Data

func (d *Dkim) Data() []byte
type Header interface {
	Date() string
	MessageId() string
	Sender() string
}

type Mailer

type Mailer interface {
	Header
	Dataer
}

type QP

type QP string

func (QP) DecodeQP

func (s QP) DecodeQP() string

func (QP) EncodeQP

func (s QP) EncodeQP() string

func (QP) Q

func (s QP) Q() string

type Sender

type Sender string

func (Sender) Decode

func (s Sender) Decode(senderDomain string) (string, string)

func (Sender) Encode

func (s Sender) Encode(prefix, senderDomain string) string

Jump to

Keyboard shortcuts

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