email

package
v1.0.9-webauthn-v2.15 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	PlainAuth *PlainAuth `json:"plainAuth"`
}

type EmailConfig

type EmailConfig struct {
	TemplateEngine *template.Template `json:"-"`
	Host           string             `json:"host"`
	Auth           *Auth              `json:"auth"`
	FromName       string             `json:"fromName"`
	FromEmail      string             `json:"fromEmail"`
	JustLogIt      bool               `json:"justLogIt"`
}

type IEmailRenderer

type IEmailRenderer interface {
	RenderEmail(ctx context.Context, request *RenderEmailRequest) (*RenderEmailResponse, error)
}

type IEmailService

type IEmailService interface {
	SendEmail(ctx context.Context, request *SendEmailRequest) (*SendEmailResponse, error)
	SendSimpleEmail(ctx context.Context, request *SendSimpleEmailRequest) (*SendSimpleEmailResponse, error)
}

type PlainAuth

type PlainAuth struct {
	Identity string `json:"identity"`
	Username string `json:"username"`
	Password string `json:"password"`
	Host     string `json:"host"`
}

type RenderEmailRequest

type RenderEmailRequest struct {
	HtmlTemplate string
	TextTemplate string
	Data         map[string]interface{}
}

type RenderEmailResponse

type RenderEmailResponse struct {
	Html string
	Text string
}

type SendEmailRequest

type SendEmailRequest struct {
	ToEmail      string
	SubjectId    string
	HtmlTemplate string
	TextTemplate string
	Data         map[string]interface{}
}

type SendEmailResponse

type SendEmailResponse struct{}

type SendSimpleEmailRequest

type SendSimpleEmailRequest struct {
	ToEmail   string
	SubjectId string
	BodyId    string
	Data      map[string]string
}

type SendSimpleEmailResponse

type SendSimpleEmailResponse struct{}

Jump to

Keyboard shortcuts

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