viasendgrid

package
v0.0.0-...-6a53fb6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendGrid

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

func New

func New(sc *SendGridConfig, tc *TmplConfig) (*SendGrid, error)

func (*SendGrid) Send

func (sg *SendGrid) Send(dst, msg string) error

type SendGridConfig

type SendGridConfig struct {
	Key      string
	FromName string
	From     string
	ToName   string
	Subject  string
	Timeout  time.Duration
}

type TmplConfig

type TmplConfig struct {
	TextPath string
	HtmlPath string
}

Jump to

Keyboard shortcuts

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