Documentation
¶
Index ¶
- type Notification
- type Notifier
- func NewDryRunNotifier(webhookURL string, dedupTTL time.Duration) Notifier
- func NewDryRunOpenClawNotifier(webhookURL string, token string, dedupTTL time.Duration) Notifier
- func NewNotifier(webhookURL string, httpClient *http.Client, dedupTTL time.Duration) Notifier
- func NewOpenClawNotifier(webhookURL string, token string, httpClient *http.Client, ...) Notifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct {
TaskName string `json:"task_name"`
Phase string `json:"phase"`
Assignee string `json:"assignee"`
}
Notification holds the data sent to the webhook.
type Notifier ¶
type Notifier interface {
Notify(ctx context.Context, notification Notification) error
}
Notifier sends notifications to a configured webhook URL.
func NewDryRunNotifier ¶ added in v0.10.0
NewDryRunNotifier returns a Notifier that logs notifications instead of sending HTTP requests.
func NewDryRunOpenClawNotifier ¶ added in v0.11.0
NewDryRunOpenClawNotifier returns a Notifier that logs the OpenClaw payload instead of sending HTTP requests.
func NewNotifier ¶
NewNotifier returns a Notifier that posts JSON to webhookURL.
Click to show internal directories.
Click to hide internal directories.