Initialize narratio Go module and CLI scaffold
This commit is contained in:
15
internal/adapters/notify/sender.go
Normal file
15
internal/adapters/notify/sender.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Package notify declares the adapter contract for run notifications.
|
||||
package notify
|
||||
|
||||
import "context"
|
||||
|
||||
// Sender is a placeholder adapter interface for notifications.
|
||||
type Sender interface {
|
||||
Send(ctx context.Context, msg Message) error
|
||||
}
|
||||
|
||||
// Message is a placeholder notification payload.
|
||||
type Message struct {
|
||||
Subject string
|
||||
Body string
|
||||
}
|
||||
Reference in New Issue
Block a user