[feat] 规则链添加切换设备节点

This commit is contained in:
PandaX
2023-10-30 13:56:53 +08:00
parent cac66b9fd0
commit 777ecbd2c0
7 changed files with 94 additions and 21 deletions

View File

@@ -118,6 +118,11 @@ func (meta *Metadata) GetValue(key string) any {
return (*meta)[key]
}
func (meta *Metadata) Has(key string) bool {
_, ok := (*meta)[key]
return ok
}
func (meta *Metadata) SetValue(key string, val interface{}) {
(*meta)[key] = val
}