Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors
SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors
Index ¶
- func Classify(event domain.Event, operation *domain.Operation) domain.NotificationCategory
- func Matches(channel domain.NotificationChannel, event domain.Event, ...) bool
- func Prepare(c *domain.NotificationChannel, previous *domain.NotificationChannel) error
- func ValidateDestination(channel domain.NotificationChannel) error
- type DeliverySender
- type Engine
- type Options
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Matches ¶
func Matches(channel domain.NotificationChannel, event domain.Event, category domain.NotificationCategory) bool
func Prepare ¶
func Prepare(c *domain.NotificationChannel, previous *domain.NotificationChannel) error
Prepare validates configuration and retains omitted secrets only for unchanged destinations. previous, when supplied, must include explicitly loaded plaintext secrets.
func ValidateDestination ¶
func ValidateDestination(channel domain.NotificationChannel) error
Types ¶
type DeliverySender ¶
type DeliverySender interface {
Send(context.Context, domain.NotificationChannel, domain.Event, domain.NotificationCategory) error
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) DeliverDue ¶
DeliverDue processes a bounded batch sequentially for one channel. Run ensures only one worker owns each channel, while independent destinations run in parallel.
Click to show internal directories.
Click to hide internal directories.