feat: notification provider (#8)
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #8.
This commit is contained in:
16
pkg/notificationProvider/console/console.go
Normal file
16
pkg/notificationProvider/console/console.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package notificationProviderConsole
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type NotificationProviderImplConsole struct{}
|
||||
|
||||
func New() *NotificationProviderImplConsole {
|
||||
return &NotificationProviderImplConsole{}
|
||||
}
|
||||
|
||||
func (p *NotificationProviderImplConsole) SendNotification(title string, message string) error {
|
||||
fmt.Printf("%s: %s\n", title, message)
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user