email

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: BSD-3-Clause Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleOptions

type HandleOptions struct {
	Addr, Username, Password, FromAddr string
}

HandleOptions is used to construct a new HandleService using the NewHandleService function.

type HandleService

type HandleService struct {
	Template *template.Template
	// contains filtered or unexported fields
}

HandleService implements the HandleService interface. Handles are interperted as email addresses.

func NewHandleService

func NewHandleService(opt *HandleOptions) (*HandleService, error)

NewHandleService returns a new HandleService instance with the given options.

func (*HandleService) Listed

func (s *HandleService) Listed(handle string) bool

Listed return true when the given address is listed.

func (*HandleService) Notify

func (s *HandleService) Notify(handle, loginurl string) error

Notify returns nil when the given login URL is succesfully sent to the given email address.

func (*HandleService) Register

func (s *HandleService) Register(handle string) error

Register returns nil when the given address is valid.

Jump to

Keyboard shortcuts

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