notification

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: GPL-2.0 Imports: 3 Imported by: 2

Documentation

Overview

This package encapsulates methods to notify users using smtp when the analysis finished

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailNotifier

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

func NewEmailNotifier

func NewEmailNotifier(smtp string, port int, user, pass, sender, resultpage string) (notifier *EmailNotifier)

func (*EmailNotifier) Notify

func (n *EmailNotifier) Notify(status string, analysisId string, runName string, workflow string, email string) (err error)

Workflow may be FastTree or PhyML-SMS

type Notifier

type Notifier interface {
	Notify(status string, analysisId string, runName string, workflow string, email string) error
}

type NullNotifier

type NullNotifier struct {
}

func NewNullNotifier

func NewNullNotifier() (notifier *NullNotifier)

func (*NullNotifier) Notify

func (n *NullNotifier) Notify(status string, analysisId string, runName string, workflow string, email string) (err error)

Jump to

Keyboard shortcuts

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