params

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMessage

func SetMessage(p *Parameters, message string, html bool)

func SetTemplateData

func SetTemplateData[T any](p *Parameters, m map[string]T)

SetTemplateData is a helper function for translating a mapping of type T map[string]T to map[string]any

Types

type CourierParams

type CourierParams struct {
	Host     string
	Port     int
	User     string
	Password string
}

type EnvelopParams

type EnvelopParams struct {
	SendFrom string
	ReplyTo  string
	SendTo   []string
	SendCc   []string
	SendBcc  []string
}

type MessageParams

type MessageParams struct {
	HighPriority bool
	Subject      string
	TextMessage  string
	HtmlMessage  string
	TemplateType string
	TemplateData map[string]any
	Attachments  []string
}

type Parameters

type Parameters struct {
	CourierParams
	EnvelopParams
	MessageParams
}

Jump to

Keyboard shortcuts

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