notify

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailTemplate = `` /* 1312-byte string literal not displayed */

Functions

This section is empty.

Types

type EmailData added in v0.2.1

type EmailData struct {
	Campground     *models.Campground
	StartDate      string
	EndDate        string
	AvailableSites models.Campsites
}

type SMTPConfig added in v0.2.1

type SMTPConfig struct {
	Host     string
	Port     string
	Email    string
	Password string
}

type SMTPSender added in v0.2.1

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

func NewSMTPSender added in v0.2.1

func NewSMTPSender(cfg SMTPConfig) (*SMTPSender, error)

func (SMTPSender) Send added in v0.2.1

func (s SMTPSender) Send(cg *models.Campground, startDate, endDate string, sites models.Campsites) error

Jump to

Keyboard shortcuts

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