emailclient

package
v0.0.0-...-932a008 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package emailclient implements the EmailClient interface, so the core domain can remain agnostic of the implementation of how emails are actually sent when all domain logic is established.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerToken  string
	AccountToken string
}

type EmailClient

type EmailClient struct {
	Client postmark.Client
}

func New

func New(conf Config) EmailClient

New returns a configured email client. TODO: Add static configuration in config and pass through here as input.

func (ec EmailClient) SendActivationLink(userEmailAddress models.Address) error

Jump to

Keyboard shortcuts

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