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
Click to show internal directories.
Click to hide internal directories.