dispatch

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SendOptions []postdog.SendOption
	Timeout     time.Duration
}

Config is the dispatch config.

func Configure

func Configure(opts ...Option) Config

Configure builds Config from opts.

type Option

type Option func(*Config)

Option is a dispatch option.

func SendOptions

func SendOptions(opts ...postdog.SendOption) Option

SendOptions returns an Option that adds postdog.SendOptions to the dispatch.

func Timeout

func Timeout(d time.Duration) Option

Timeout returns an Option that adds a timeout to the dispatch. The timeout applies only to the dispatch, not to the actual sending of the mail.

Jump to

Keyboard shortcuts

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