queue

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2015 License: MIT Imports: 11 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Persistent connection to an SMTP host.

func NewHost

func NewHost(host string) *Host

Create a new host connection.

func (*Host) Deliver

func (h *Host) Deliver(e *email.Email)

Attempt to deliver an email to the host.

func (*Host) Idle

func (h *Host) Idle() time.Duration

Retrieve the connection idle time.

func (*Host) Stop

func (h *Host) Stop()

Close the connection to the host.

type Queue

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

Mail queue managing the sending of emails to hosts.

func NewQueue

func NewQueue() *Queue

Create a new mail queue.

func (*Queue) Deliver

func (q *Queue) Deliver(e *email.Email)

Deliver the provided email.

func (*Queue) Stop

func (q *Queue) Stop()

Stop all active host queues.

Jump to

Keyboard shortcuts

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