consumer

package
v0.0.0-...-513d4e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookConsumer

type WebhookConsumer interface {
	// AlertReceiveConsumerManager 管理告警接收的消费者
	AlertReceiveConsumerManager(ctx context.Context) error
	// HandleAlert 处理单个告警接收
	HandleAlert(ctx context.Context, alert template.Alert)
}

WebhookConsumer 定义了Webhook消费者的接口

func NewWebhookConsumer

func NewWebhookConsumer(logger *zap.Logger, cache cache.WebhookCache, dao dao.WebhookDao, content content.WebhookContent, alertReceiveQueue chan template.Alert) WebhookConsumer

NewWebhookConsumer 创建一个新的WebhookConsumer实例

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL