mail

package
v0.0.0-...-a097be9 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config model.NotifMail, app model.App, cmn model.Common) notifier.Notifier

New creates a new mail notification instance

Types

type Client

type Client struct {
	*notifier.Notifier
	// contains filtered or unexported fields
}

Client represents an active mail notification object

func (*Client) Name

func (c *Client) Name() string

Name returns notifier's name

func (*Client) Send

func (c *Client) Send(jnl journal.Client) error

Send creates and sends an email notification with journal entries

type Theme

type Theme struct{}

Theme is the theme for hermes

func (*Theme) HTMLTemplate

func (t *Theme) HTMLTemplate() string

HTMLTemplate returns a Golang template that will generate an HTML email.

func (*Theme) Name

func (t *Theme) Name() string

Name returns the name of the theme

func (*Theme) PlainTextTemplate

func (t *Theme) PlainTextTemplate() string

PlainTextTemplate returns a Golang template that will generate an plain text email.

Jump to

Keyboard shortcuts

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