simulate

package
v1.78.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkClicker

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

LinkClicker is mailservice.Sender that click all links from html msg parts.

architecture: Service

func NewDefaultLinkClicker added in v1.37.1

func NewDefaultLinkClicker(log *zap.Logger) *LinkClicker

NewDefaultLinkClicker returns a LinkClicker with the default marker attribute.

func (clicker *LinkClicker) FindLinks(body string) (links []string)

FindLinks returns a list of all links belonging to properly attributed anchors in the HTML body.

func (*LinkClicker) FromAddress

func (clicker *LinkClicker) FromAddress() post.Address

FromAddress return empty mail address.

func (*LinkClicker) SendEmail

func (clicker *LinkClicker) SendEmail(ctx context.Context, msg *post.Message) (err error)

SendEmail click all links belonging to properly attributed anchors from email html parts.

type NoMail added in v1.61.3

type NoMail struct {
}

NoMail doesn't send out any mail.

func (NoMail) FromAddress added in v1.61.3

func (n NoMail) FromAddress() post.Address

FromAddress implements func from mailservice.Sender.

func (NoMail) SendEmail added in v1.61.3

func (n NoMail) SendEmail(ctx context.Context, msg *post.Message) error

SendEmail implements func from mailservice.Sender.

Jump to

Keyboard shortcuts

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