service

package
v0.0.0-...-04b7820 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailService

type EmailService struct {
	Client *sendgrid.Client
}

func (*EmailService) Send

func (s *EmailService) Send(name, email, subject, content string) error

func (*EmailService) SendForgotPasswordEmail

func (s *EmailService) SendForgotPasswordEmail(name, email string)

func (*EmailService) SendVerificationEmail

func (s *EmailService) SendVerificationEmail(name, email, url string)

Sends account verification email

type EmailServicer

type EmailServicer interface {
	SendVerificationEmail(name, email, url string)
	SendForgotPasswordEmail(name, email string)
}

func NewEmailService

func NewEmailService() EmailServicer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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