interfaces

package
v0.0.0-...-1dc079d Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimiter

type RateLimiter interface {
	// Ratelimit will return true when sending is permitted
	Ratelimit(from, to string) bool

	// Run will add/expire entries
	Run(context.Context)
}

RateLimiter limits rate of sending mails from -> to

type ReplyGenerator

type ReplyGenerator interface {
	GenerateReplyBody(ctx context.Context, msg *mail.Message, mailfrom, rcptto string, reply *gomail.Msg) (*gomail.Msg, error)
}

ReplyGenerator generates reply body message based on input message Return nil if reply should not be sent

Jump to

Keyboard shortcuts

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