2015-07-02 16:38:05 +00:00
|
|
|
package manager
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/prometheus/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Notifier interface {
|
2015-07-04 12:05:04 +00:00
|
|
|
Name() string
|
2015-07-02 16:38:05 +00:00
|
|
|
Send(...interface{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type LogNotifier struct {
|
|
|
|
}
|
|
|
|
|
2015-07-04 12:05:04 +00:00
|
|
|
func (*LogNotifier) Name() string {
|
|
|
|
return "default"
|
|
|
|
}
|
|
|
|
|
2015-07-02 16:38:05 +00:00
|
|
|
func (*LogNotifier) Send(v ...interface{}) {
|
|
|
|
log.Infoln(v...)
|
|
|
|
}
|