dispatch

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 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 {
	Send    send.Config
	Timeout time.Duration
	// contains filtered or unexported fields
}

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 ...send.Option) Option

SendOptions returns an Option that adds send.Options 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