email

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Singleton creational design pattern restricts the instantiation of a type to a single object. Singleton pattern represents a global state and most of the time reduces testability. http://tmrts.com/go-patterns/creational/singleton.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendEmail

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

SendEmail struct

func NewSendEmail

func NewSendEmail(emailConf *config.EmailConfiguration) *SendEmail

NewSendEmail is constructor

func (*SendEmail) Send

func (sender *SendEmail) Send(subject, body string, to []string) error

Send sends an email here, and perhaps returns an error.

Jump to

Keyboard shortcuts

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