You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
osem_notify/core/notifiers.go

15 lines
308 B
Go

package core
6 years ago
type AbstractNotifier interface {
GetName() string
SetupTransport(config interface{}) error
AddNotifications(notifications []Notification) error
SendNotifications() error
}
type Notification struct {
}
// TODO: multiple transports? one transport per event? (??)
type SlackConfig struct{}