waf/ip名单有变更立即发送通知

This commit is contained in:
刘祥超
2020-11-10 09:22:38 +08:00
parent a95b1df21c
commit 0e44a20d63
3 changed files with 479 additions and 278 deletions

View File

@@ -11,6 +11,7 @@ const (
MessageCodeCleanCache MessageCode = "cleanCache" // 清理缓存
MessageCodePreheatCache MessageCode = "preheatCache" // 预热缓存
MessageCodeConfigChanged MessageCode = "configChanged" // 配置已改变
MessageCodeIPListChanged MessageCode = "ipListChanged" // IP列表变化
)
// 连接API节点成功
@@ -57,3 +58,7 @@ type PreheatCacheMessage struct {
// 配置已改变
type ConfigChangedMessage struct {
}
// IPList变化
type IPListChangedMessage struct {
}