2018-10-25 15:51:47 +02:00
|
|
|
package messenger
|
|
|
|
|
|
|
|
// Messenger is an interface for a generic messaging backend,
|
|
|
|
// for instance, e-mail, SMS etc.
|
|
|
|
type Messenger interface {
|
|
|
|
Name() string
|
|
|
|
|
2018-11-28 08:59:57 +01:00
|
|
|
Push(fromAddr string, toAddr []string, subject string, message []byte) error
|
2018-10-25 15:51:47 +02:00
|
|
|
Flush() error
|
|
|
|
}
|