tpl

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfirmAccount = iota
	ResetPassword
	EmailUpdate
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailAttachement added in v0.9.0

type EmailAttachement struct {
	B64Data  string
	FileName string
	Type     string
}

func (EmailAttachement) Base64Data added in v0.9.0

func (ea EmailAttachement) Base64Data() string

func (EmailAttachement) MimeType added in v0.9.0

func (ea EmailAttachement) MimeType() string

func (EmailAttachement) Name added in v0.9.0

func (ea EmailAttachement) Name() string

type EmailRequest

type EmailRequest struct {
	From    string
	Subject string

	InlineImgs []EmailAttachement
	// contains filtered or unexported fields
}

EmailRequest struct

func (EmailRequest) Execute

func (er EmailRequest) Execute(templateData interface{}, wr io.Writer) error

type EmailTemplate

type EmailTemplate int

type Service

type Service struct {
	EmailRequestTemplate map[EmailTemplate]EmailRequest
}

func New

func New(filePath string) (Service, error)

New iterate over the list of html templates and parses them.

Jump to

Keyboard shortcuts

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