Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
ProjectName string
EventType string // "prompt_failed", "prompt_partial", "spec_verifying", "review_limit", "stuck_container"
PromptName string // filename without path, empty if not applicable
PRURL string // empty if not applicable
}
Event holds the data for a single notification.
type Notifier ¶
Notifier sends a notification for a lifecycle event.
func NewDiscordNotifier ¶
NewDiscordNotifier returns a Notifier that sends messages via Discord webhook.
func NewMultiNotifier ¶
NewMultiNotifier returns a Notifier that fans out to all provided notifiers. If notifiers is empty, returns a no-op Notifier.
func NewTelegramNotifier ¶
NewTelegramNotifier returns a Notifier that sends messages via Telegram.
func NewTelegramNotifierWithBaseURL ¶
NewTelegramNotifierWithBaseURL returns a Notifier that sends messages via Telegram, using the given base URL instead of the default api.telegram.org. Useful for testing.
Click to show internal directories.
Click to hide internal directories.