comms

package
v0.0.0-...-7acbbf3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 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 Communication

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

func NewCommunication

func NewCommunication(em Emailer) Communication

func (*Communication) Communicate

func (c *Communication) Communicate(to, toemail string) (int, error)

type Emailer

type Emailer interface {
	Send(to, toemail string) (int, error)
}

type SendGridEmailer

type SendGridEmailer struct {
	SendGridKey       string
	SendGridFromName  string
	SendGridFromEmail string
}

func NewSendGridEmailer

func NewSendGridEmailer() SendGridEmailer

func (SendGridEmailer) Send

func (e SendGridEmailer) Send(to, toemail string) (int, error)

Jump to

Keyboard shortcuts

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