16 lines
348 B
Go
16 lines
348 B
Go
// 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
|
|
}
|