mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	配置更新时立即向集群节点发消息
This commit is contained in:
		@@ -10,6 +10,7 @@ const (
 | 
				
			|||||||
	MessageCodePurgeCache       MessageCode = "purgeCache"       // 删除缓存
 | 
						MessageCodePurgeCache       MessageCode = "purgeCache"       // 删除缓存
 | 
				
			||||||
	MessageCodeCleanCache       MessageCode = "cleanCache"       // 清理缓存
 | 
						MessageCodeCleanCache       MessageCode = "cleanCache"       // 清理缓存
 | 
				
			||||||
	MessageCodePreheatCache     MessageCode = "preheatCache"     // 预热缓存
 | 
						MessageCodePreheatCache     MessageCode = "preheatCache"     // 预热缓存
 | 
				
			||||||
 | 
						MessageCodeConfigChanged    MessageCode = "configChanged"    // 配置已改变
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// 连接API节点成功
 | 
					// 连接API节点成功
 | 
				
			||||||
@@ -52,3 +53,7 @@ type PreheatCacheMessage struct {
 | 
				
			|||||||
	CachePolicyJSON []byte   `json:"cachePolicyJSON"`
 | 
						CachePolicyJSON []byte   `json:"cachePolicyJSON"`
 | 
				
			||||||
	Keys            []string `json:"keys"`
 | 
						Keys            []string `json:"keys"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// 配置已改变
 | 
				
			||||||
 | 
					type ConfigChangedMessage struct {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user