mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:47:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
20
apps/api/internal/notification/channels/channel.go
Normal file
20
apps/api/internal/notification/channels/channel.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package channels
|
||||
|
||||
import "github.com/zitadel/zitadel/internal/eventstore"
|
||||
|
||||
type Message interface {
|
||||
GetTriggeringEventType() eventstore.EventType
|
||||
GetContent() (string, error)
|
||||
}
|
||||
|
||||
type NotificationChannel interface {
|
||||
HandleMessage(message Message) error
|
||||
}
|
||||
|
||||
var _ NotificationChannel = (HandleMessageFunc)(nil)
|
||||
|
||||
type HandleMessageFunc func(message Message) error
|
||||
|
||||
func (h HandleMessageFunc) HandleMessage(message Message) error {
|
||||
return h(message)
|
||||
}
|
Reference in New Issue
Block a user