cache

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookCache

type WebhookCache interface {
	RenewAllCaches(ctx context.Context) error            // 刷新所有缓存
	GetOnDutyGroupById(id int) *model.MonitorOnDutyGroup // 根据 ID 获取 OnDutyGroup 数据
	GetRuleById(id int) *model.MonitorAlertRule          // 根据 ID 获取 Rule 数据
	GetSendGroupById(id int) *model.MonitorSendGroup     // 根据 ID 获取 SendGroup 数据
	GetUserById(id int) *model.User                      // 根据 ID 获取 User 数据
}

func NewWebhookCache

func NewWebhookCache(l *zap.Logger, dao dao.WebhookDao, robot robot.WebhookRobot) WebhookCache

Jump to

Keyboard shortcuts

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