mailing

package
v0.0.0-...-8717a1f Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSendEmailFailed = errors.New("Failed to send email")
)

Functions

func WithBasicAuth

func WithBasicAuth(username, password string) func(client *client)

func WithHTTPClient

func WithHTTPClient(c _http.Client) func(client *client)

Types

type Client

type Client interface {
	SendOTPEmail(recipientAddress string, recipientName string, otpType string, otp string) error
	SendVerificationEmail(recipientAddress string, recipientName string, verificationLink string) error
}

func NewMailingClient

func NewMailingClient(baseURL string, options ...func(*client)) Client

Jump to

Keyboard shortcuts

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