notification

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpNotifier

type HttpNotifier struct {
	URL  string
	From string
	To   string
	User []string
}

func NewHttpNotifier

func NewHttpNotifier() *HttpNotifier

func (*HttpNotifier) Notify

func (n *HttpNotifier) Notify(subject string, text string, attachfile string)

type Notifier

type Notifier interface {
	Notify(subject string, text string, attachfile string)
}

func NotifierFactory

func NotifierFactory() (Notifier, error)

type SmtpNotifier

type SmtpNotifier struct {
	Host string
	From string
	To   string
}

func NewSmtpNotifier

func NewSmtpNotifier() *SmtpNotifier

func (*SmtpNotifier) Notify

func (n *SmtpNotifier) Notify(subject string, text string, attachfile string)

Jump to

Keyboard shortcuts

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