routes

package
v0.0.0-...-31041b1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Protected

func Protected(w http.ResponseWriter, req *http.Request)

Protected controller

func Routes

func Routes() *chi.Mux

Routes is the handler function for the index mail route

func SendEmail

func SendEmail(w http.ResponseWriter, req *http.Request)

SendEmail controller

Types

type BodyMail

type BodyMail struct {
	Contacts []Mail `json:"contacts"`
	HTML     string `json:"html"`
	Title    string `json:"title"`
}

BodyMail structure

type Mail

type Mail struct {
	Name    string `json:"name"`
	Address string `json:"address"`
}

Mail structure

func (*Mail) Send

func (acc *Mail) Send(wg *sync.WaitGroup, client *sendgrid.Client, message *mail.SGMailV3)

Send Email Method

Jump to

Keyboard shortcuts

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