driver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: MIT Imports: 0 Imported by: 15 modules, 14 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package driver defines interfaces to be implemented by email_sender drivers as used by package emailsender.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	// SendHTML sends an HTML email to multiple recipients.
	SendHTML(to []string, from, subj, html string) error

	// SendPlainText sends a PlainText email to multiple recipients.
	SendPlainText(to []string, from, subj, plaintext string) error

	// Close the connection.
	Close() error
}

Conn is a connection to the external email service.

type Driver

type Driver interface {
	// Open returns a new connection to the email server. The name is a
	// string in a driver-specific format, often for authentication.
	Open(name string) (Conn, error)
}

Driver is the interface that must be implemented by an email driver.

Jump to

Keyboard shortcuts

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