Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
Dispatcher 告警事件分发接口,供 event.Core 依赖注入使用
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier 将告警事件异步推送到多个 webhook 目标 每个目标独立维护一个 buffered channel 和一个 worker goroutine,互不阻塞
func NewNotifier ¶
NewNotifier 创建 Notifier,为每个 target 启动独立的 worker goroutine target URL 中的 ?secret=xxx 会被提取放入 Secret header 发送,URL 本身不携带 secret
Click to show internal directories.
Click to hide internal directories.