service

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSender

type EmailSender interface {
	Send(subject, body string, to []string) error
}

EmailSender provides an interface so we can swap out the implementation of SendEmail under tests.

type EmailService

type EmailService interface {
	Welcome(name, email string) error
}

EmailService interface

func NewEmailService

func NewEmailService(Emailer EmailSender) EmailService

NewEmailService is constructor

Jump to

Keyboard shortcuts

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